atomex v0.2.0 Atomex.Types.Category

A category as described in Atom specs. See this link

Summary

Functions

Create a new category tag

Functions

new(term, attributes \\ [])

Create a new category tag.

Parameters

  • term: A string identifying the category
  • attributes: A keyword list accepting following entries:

    • scheme: identifies the categorization scheme via a URI
    • label: provides a human-readable label for display

Examples

iex> Atomex.Types.Category.new(“70-s-music”) {:category, %{term: “70-s-music”}, nil} iex> Atomex.Types.Category.new(“70-s-music”, label: “70’s music”) {:category, %{term: “70-s-music”, label: “70’s music”}, nil}