Class: SmashTheState::Operation::Definition
- Defined in:
- lib/smash_the_state/operation/definition.rb
Overview
fundamentally a definition is a re-usable schema block with a name
Class Attribute Summary collapse
-
.schema_block ⇒ Object
readonly
Returns the value of attribute schema_block.
Attributes inherited from State
Class Method Summary collapse
-
.ref ⇒ Object
(also: to_s)
the “name” is available as a reference.
Methods inherited from State
#as_json, build, eval_custom_validator_block, eval_validation_directives_block, extend_validation_directives_block, #initialize, model_name
Constructor Details
This class inherits a constructor from SmashTheState::Operation::State
Class Attribute Details
.schema_block ⇒ Object (readonly)
Returns the value of attribute schema_block.
6 7 8 |
# File 'lib/smash_the_state/operation/definition.rb', line 6 def schema_block @schema_block end |
Class Method Details
.ref ⇒ Object Also known as: to_s
the “name” is available as a reference
9 10 11 |
# File 'lib/smash_the_state/operation/definition.rb', line 9 def ref @definition_name end |