Packages

An OTP application to keep RSS feeds in sync with the real world.

Current section

Files

Jump to
rss_sync lib rss_sync feed enclosure.ex
Raw

lib/rss_sync/feed/enclosure.ex

defmodule RssSync.Feed.Enclosure do
@type t :: %__MODULE__{}
defstruct url: nil,
length: nil,
type: nil
@spec build_enclosure(tuple()) :: t()
def build_enclosure({:enclosure, url, length, type}),
do: __struct__(url: url, length: length, type: type)
end