feed_parser/lib/item.ex

16 lines
363 B
Elixir
Raw Normal View History

2019-08-31 23:02:41 +00:00
defmodule FeedParser.Item do
2019-09-01 03:25:10 +00:00
@moduledoc """
A item in a feed. Has metadata and content from the item.
"""
2019-08-31 23:02:41 +00:00
defstruct [:guid, :url, :title, :content, :date]
@type t() :: %__MODULE__{
guid: String.t(),
url: String.t() | nil,
title: String.t() | nil,
content: String.t(),
date: DateTime.t()
}
end