Packages

Microdata is an Elixir library for parsing microdata from a provided document. Includes helper functions, eg for looking up typed items in a document, and named properties in an item.

Current section

Files

Jump to
microdata lib microdata property.ex
Raw

lib/microdata/property.ex

defmodule Microdata.Property do
@moduledoc """
`Microdata.Property` structs are key/value mappings for data parsed from `Microdata.Item`s' source.
"""
@enforce_keys [:names, :value]
defstruct names: nil, value: nil, html: nil
@type t :: %Microdata.Property{
names: MapSet.t(String.t()),
value: String.t() | Microdata.Item.t(),
html: String.t()
}
end