15 lines
390 B
Elixir
15 lines
390 B
Elixir
defmodule FeedParser.Feed do
|
|
@moduledoc """
|
|
A feed. Contains some information about the site it originates from and a list of items it contains.
|
|
"""
|
|
|
|
defstruct [:site_url, :title, :image_url, :items]
|
|
|
|
@type t() :: %__MODULE__{
|
|
site_url: String.t(),
|
|
title: String.t(),
|
|
image_url: String.t() | nil,
|
|
items: [FeedParser.Item.t()]
|
|
}
|
|
end
|