Class: SmashTheState::Operation::Definition

Inherits:
State
  • Object
show all
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

Attributes inherited from State

#current_user

Class Method Summary collapse

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_blockObject (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

.refObject 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