Class: Sbuilder::ParamSet_If

Inherits:
ParamSet show all
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

Utils::MyLogger::LOGFILE

Instance Attribute Summary collapse

Attributes inherited from ParamSet

#parameters

Instance Method Summary collapse

Methods included from Utils::MyLogger

#getLogger, #logfile

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( options = {} )
  super( options )
  @logger = getLogger( PROGNAME, options )
  @logger.debug( "#{__method__} initialized" )
  @response = nil
  @infrastructureService = false
end

Instance Attribute Details

#infrastructureServiceObject (readonly)

default ‘false’



10
11
12
# File 'lib/sbuilder/param_set_if.rb', line 10

def infrastructureService
  @infrastructureService
end

#operationObject (readonly)

REST path



8
9
10
# File 'lib/sbuilder/param_set_if.rb', line 8

def operation
  @operation
end

#pathObject (readonly)

REST path



7
8
9
# File 'lib/sbuilder/param_set_if.rb', line 7

def path
  @path
end

#responseObject (readonly)

returned from interface



9
10
11
# File 'lib/sbuilder/param_set_if.rb', line 9

def response
  @response
end

Instance Method Details

#doGetIdObject

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