Class: Sbuilder::ParamSetDef
- Inherits:
-
ParamSet
- Object
- ParamSetRoot
- ParamSet
- Sbuilder::ParamSetDef
- Includes:
- Utils::MyLogger
- Defined in:
- lib/sbuilder/param_set_def.rb
Overview
interface paramter set (identified by path+operations)
Direct Known Subclasses
Constant Summary collapse
- PROGNAME =
mixer
nil
Constants included from Utils::MyLogger
Instance Attribute Summary collapse
-
#definition ⇒ Object
readonly
REST path.
-
#isArray ⇒ Object
readonly
defaults ‘false’.
Attributes inherited from ParamSetRoot
#parameters, #sourceColumn, #sourceLine, #sourceModule
Instance Method Summary collapse
-
#doGetId ⇒ Object
return identity.
-
#initialize(options = {}) ⇒ ParamSetDef
constructor
—————————————————————— constrcutore.
-
#isFunction ⇒ Boolean
False should not be intepreted as a function.
-
#setDefinition(definition) ⇒ Object
set configure.
-
#setIsArray(isArray = true) ⇒ Object
——————————————————————.
Methods included from Utils::MyLogger
Methods inherited from ParamSet
cleanUpName, #getId, #getName, #locateParameter, #matchesWithParamSet, #parameter_definitions, #parametersToResolve, #resolveNeeded, #to_s
Methods inherited from ParamSetRoot
#addParameter, id2name, #lookupParameter, #setSourceLink
Constructor Details
#initialize(options = {}) ⇒ ParamSetDef
constrcutore
18 19 20 21 22 23 24 25 |
# File 'lib/sbuilder/param_set_def.rb', line 18 def initialize( = {} ) super( ) @logger = getLogger( PROGNAME, ) @logger.debug( "#{__method__} initialized" ) # default is not an arrays @isArray = false end |
Instance Attribute Details
#definition ⇒ Object (readonly)
REST path
8 9 10 |
# File 'lib/sbuilder/param_set_def.rb', line 8 def definition @definition end |
#isArray ⇒ Object (readonly)
defaults ‘false’
7 8 9 |
# File 'lib/sbuilder/param_set_def.rb', line 7 def isArray @isArray end |
Instance Method Details
#doGetId ⇒ Object
return identity
41 42 43 |
# File 'lib/sbuilder/param_set_def.rb', line 41 def doGetId "#{definition}" end |
#isFunction ⇒ Boolean
Returns false should not be intepreted as a function.
54 55 56 |
# File 'lib/sbuilder/param_set_def.rb', line 54 def isFunction false end |
#setDefinition(definition) ⇒ Object
set configure
32 33 34 35 |
# File 'lib/sbuilder/param_set_def.rb', line 32 def setDefinition( definition ) @definition = definition self end |
#setIsArray(isArray = true) ⇒ Object
48 49 50 51 |
# File 'lib/sbuilder/param_set_def.rb', line 48 def setIsArray( isArray = true ) @isArray = isArray self end |