View Source Luminous.Attributes (luminous v2.0.0)
Attributes map variable values (user-defined) to attribute keyword lists.
Link to this section Summary
Functions
Parse the supplied keyword list using the specified schema (performs validations as well) Return a map
parse the supplied keyword list using the specified schema (performs validations as well) return a map or raise on error
Link to this section Functions
@spec parse( keyword(), NimbleOptions.schema() ) :: {:ok, map()} | {:error, binary()}
Parse the supplied keyword list using the specified schema (performs validations as well) Return a map
@spec parse!( keyword(), NimbleOptions.schema() ) :: map()
parse the supplied keyword list using the specified schema (performs validations as well) return a map or raise on error