Exoplanet.Post (Exoplanet v0.4.0)

Copy Markdown View Source

Post definition

Exoplanet will produce a list of these feed entries

Summary

Functions

Builds the struct of posts or feed entries

Types

t()

@type t() :: %Exoplanet.Post{
  authors: [String.t()],
  body: String.t() | nil,
  categories: [String.t()] | nil,
  feed_url: String.t(),
  id: String.t(),
  published: NaiveDateTime.t() | nil,
  summary: String.t() | nil,
  title: String.t(),
  updated: NaiveDateTime.t() | nil
}

Functions

build(attrs, body)

@spec build(map(), String.t() | nil) :: t()

Builds the struct of posts or feed entries