atomex v0.2.0 Atomex.Feed

Represent an Atom feed. Embed many Atomex.Entry

Summary

Functions

Add a custom field to the feed

Add a custom field to the feed

Add an author to the feed. See Atomex.Types.Person for accepted attributes

Must be called before build_document, once the feed is fully prepared

Add given entries to the feed

Add a link to the feed. See Atomex.Types.Link for accepted attributes

Functions

add_field(feed, xml_element)

Add a custom field to the feed

Parameters

  • feed: The feed to which you want to add a field
  • xml_element: An xml element as returned by XmlBuilder.element/3
add_field(feed, tag, attributes, content)

Add a custom field to the feed

Parameters

  • feed: The feed to which you want to add a field
  • tag: String or atom with the name of the tag
  • attributes: A map of attributes
  • content: String, or list of xml_elements as created by XmlBuilder.element/3
author(feed, name, attributes \\ [])

Add an author to the feed. See Atomex.Types.Person for accepted attributes

build(feed, opt_attributes \\ %{})

Must be called before build_document, once the feed is fully prepared

entries(feed, entries)

Add given entries to the feed

link(feed, href, attributes \\ [])

Add a link to the feed. See Atomex.Types.Link for accepted attributes

new(id, last_update_datetime, title, title_type \\ "text")

Create a new feed