CoderRing.Memo (CoderRing v0.2.1) View Source
Schema for a coder ring state.
Link to this section Summary
Types
:name- Name of the code type. (eg. "rx"):extra- Additional prefix last used by the caller. If we get a new one,:uniquizer_numis reset to 0 and the ring is reset.:uniquizer_num- A number to be passed tointeger_to_string/1for an extra value to be used between:caller_extraand the base code.:last_max_pos- Position of the code record last used as "max". Value isnilbefore the first iteration is made.
Functions
Changeset for creating a new memo.
Create a new Memo struct.
Changeset for updating an existing memo.
Link to this section Types
Specs
t() :: %CoderRing.Memo{
__meta__: term(),
extra: String.t(),
last_max_pos: non_neg_integer() | nil,
name: String.t(),
uniquizer_num: non_neg_integer()
}
:name- Name of the code type. (eg. "rx"):extra- Additional prefix last used by the caller. If we get a new one,:uniquizer_numis reset to 0 and the ring is reset.:uniquizer_num- A number to be passed tointeger_to_string/1for an extra value to be used between:caller_extraand the base code.:last_max_pos- Position of the code record last used as "max". Value isnilbefore the first iteration is made.
Link to this section Functions
Specs
changeset(t() | Ecto.Changeset.t(), map()) :: Ecto.Changeset.t()
Changeset for creating a new memo.
Specs
Create a new Memo struct.
Specs
update_changeset(t() | Ecto.Changeset.t(), map()) :: Ecto.Changeset.t()
Changeset for updating an existing memo.