exocci v0.2.0 OCCI.Types behaviour View Source
Behaviour for OCCI attributes types.
Attribute types are used to check and cast input value.
When declaring an attribute, you must declare its type:
attribute "my.type",
type: OCCI.Types.Integer
Options can be given to the application
attribute "my.type",
type: {OCCI.Types.Integer, min: 32}
Enumerations are declared as simply as:
attribute "my.type",
type: [:value1, :value2]
Link to this section Summary
Functions
Return {module, opts}
Link to this section Functions
Return {module, opts}
Link to this section Callbacks
Link to this callback
check_opts(opts)
View Source
check_opts(opts :: any) :: boolean | {true, canonical_opts :: any}