View Source OnePiece.Commanded.ValueObject (OnePiece.Commanded v0.7.3)
Defines a module as a "Value Object". For more information about value objects, please read the following:
Link to this section Summary
Functions
Converts the module into an Ecto.Schema
, and derive from Jason.Encoder
.
Link to this section Functions
Specs
__using__(opts :: []) :: any()
Converts the module into an Ecto.Schema
, and derive from Jason.Encoder
.
usage
Usage
defmodule MyValueObject do
use OnePiece.Commanded.ValueObject
embedded_schema do
# ...
end
end