snowhite v1.1.2 Snowhite.Modules.Rss.RssItem View Source

Represents a RSS item that is displayable in the view

Link to this section Summary

Functions

Casts a Rss entry to a RssItem and puts short url and qr_code.

Link to this section Types

Specs

option() :: {:qr_codes, boolean()} | {:short_link, boolean()}

Specs

raw_entry() :: %{
  id: String.t(),
  title: String.t(),
  "rss2:link": String.t(),
  updated: Timex.Types.datetime()
}

Specs

t() :: %Snowhite.Modules.Rss.RssItem{
  id: term(),
  link: term(),
  original_link: term(),
  qr_code: term(),
  title: term(),
  updated: term()
}

Link to this section Functions

Link to this function

new(entry, options \\ [])

View Source

Specs

new(raw_entry(), [option()]) :: t()

Casts a Rss entry to a RssItem and puts short url and qr_code.