View Source Arke.Core.Parameter.Boolean (Arke v0.3.0)

Module that define the struct of a Boolean by extending the Arke.Core.Parameter.base_parameters()

{arke_struct} = Parameter.Boolean

element-added

Element added

  • default => Boolean => default value

example

Example

iex> params = [id: :boolean_test, default: false]
...> Arke.Core.Parameter.Boolean(%{type: :boolean, opts: params})

return

Return

%Arke.Core.Parameter.Boolean{}

Link to this section Summary

Link to this section Functions

Link to this function

after_get_struct(arke, struct)

View Source
Link to this function

after_get_struct(arke, unit, struct)

View Source
Link to this function

before_create(arke, unit)

View Source
Link to this function

before_delete(arke, unit)

View Source
Link to this function

before_load(data, persistence_fn)

View Source
Link to this function

before_struct_encode(_, unit)

View Source
Link to this function

before_update(arke, unit)

View Source
Link to this function

before_validate(arke, unit)

View Source
Link to this function

on_load(data, persistence_fn)

View Source
Link to this function

on_struct_encode(_, _, data, opts)

View Source
Link to this function

on_update(arke, old_unit, unit)

View Source