Atomex.Types.Category (atomex v0.5.1)

A category as described in Atom specs. See this link

Link to this section Summary

Functions

Create a new category tag.

Link to this section Functions

Link to this function

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}