Class: Sbuilder::ParamSet_If
- Includes:
- Utils::MyLogger
- Defined in:
- lib/sbuilder/param_set_if.rb
Overview
interface paramter set (identified by path+operations)
Constant Summary collapse
- PROGNAME =
mixer
"ParamSet_If"
Constants included from Utils::MyLogger
Instance Attribute Summary collapse
-
#infrastructureService ⇒ Object
readonly
default ‘false’.
-
#operation ⇒ Object
readonly
REST path.
-
#path ⇒ Object
readonly
REST path.
-
#response ⇒ Object
readonly
returned from interface.
Attributes inherited from ParamSet
Instance Method Summary collapse
-
#doGetId ⇒ Object
return identity.
-
#initialize(options = {}) ⇒ ParamSet_If
constructor
—————————————————————— constrcutore.
-
#setIdentity(path, operation) ⇒ Object
set identity.
- #setInfrastructureService(infrastructureService) ⇒ Object
-
#setResponse(response) ⇒ Object
def addResponse( response ) @responses << response self end.
Methods included from Utils::MyLogger
Methods inherited from ParamSet
#addParameter, cleanUpName, #getId, #getName, #locateParameter, #matchesWithParamSet, #parameter_definitions, #parametersToResolve, #to_s
Constructor Details
#initialize(options = {}) ⇒ ParamSet_If
constrcutore
19 20 21 22 23 24 25 |
# File 'lib/sbuilder/param_set_if.rb', line 19 def initialize( = {} ) super( ) @logger = getLogger( PROGNAME, ) @logger.debug( "#{__method__} initialized" ) @response = nil @infrastructureService = false end |
Instance Attribute Details
#infrastructureService ⇒ Object (readonly)
default ‘false’
10 11 12 |
# File 'lib/sbuilder/param_set_if.rb', line 10 def infrastructureService @infrastructureService end |
#operation ⇒ Object (readonly)
REST path
8 9 10 |
# File 'lib/sbuilder/param_set_if.rb', line 8 def operation @operation end |
#path ⇒ Object (readonly)
REST path
7 8 9 |
# File 'lib/sbuilder/param_set_if.rb', line 7 def path @path end |
#response ⇒ Object (readonly)
returned from interface
9 10 11 |
# File 'lib/sbuilder/param_set_if.rb', line 9 def response @response end |
Instance Method Details
#doGetId ⇒ Object
return identity
62 63 64 |
# File 'lib/sbuilder/param_set_if.rb', line 62 def doGetId "#{path}(#{operation})" end |
#setIdentity(path, operation) ⇒ Object
set identity
55 56 57 58 59 |
# File 'lib/sbuilder/param_set_if.rb', line 55 def setIdentity( path, operation ) @path = path @operation = operation self end |
#setInfrastructureService(infrastructureService) ⇒ Object
46 47 48 49 |
# File 'lib/sbuilder/param_set_if.rb', line 46 def setInfrastructureService( infrastructureService ) @infrastructureService = infrastructureService self end |
#setResponse(response) ⇒ Object
def addResponse( response )
@responses << response
self
end
41 42 43 44 |
# File 'lib/sbuilder/param_set_if.rb', line 41 def setResponse( response ) @response = response self end |