Class: ParamsReady::Parameter::StateBuilder

Inherits:
StructParameterBuilder show all
Defined in:
lib/params_ready/parameter/state.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from StructParameterBuilder

#map

Methods included from Marshaller::BuilderModule

#marshal

Methods included from AbstractStructParameterBuilder::StructLike

#add

Methods inherited from Builder

#helper

Methods inherited from AbstractBuilder

#build, builder, define_parameter, define_registered_parameter, #fetch, fetch_builder, #include, #initialize, #open?, register, register_deprecated, resolve

Methods included from Extensions::Registry

#human_string, #registry

Constructor Details

This class inherits a constructor from ParamsReady::AbstractBuilder

Class Method Details

.instanceObject



106
107
108
109
# File 'lib/params_ready/parameter/state.rb', line 106

def self.instance
  definition = StateDefinition.new(:'', altn: :'')
  new definition
end

Instance Method Details

#relation(relation) ⇒ Object



102
103
104
# File 'lib/params_ready/parameter/state.rb', line 102

def relation(relation)
  @definition.add_relation relation
end