Class: AppContext

Inherits:
Object
  • Object
show all
Defined in:
lib/cloudmunch_Ruby_sdk_v2/AppContext.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(param) ⇒ AppContext

Returns a new instance of AppContext.



31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/cloudmunch_Ruby_sdk_v2/AppContext.rb', line 31

def initialize(param)
    @masterurl = ""
    @cloudproviders = ""
    @domainName = ""
    @project = ""
    @job = ""
    @workspaceLocation = ""
    @archiveLocation = ""
    @stepid = ""
    @targetServer=""
    @integrations=""
    @reportsLocation=""
    @runnumber=""
    @apikey=""
    @stepname=""
    @environmentId=""
   load_data(param) 
end

Instance Attribute Details

#apikeyObject

Returns the value of attribute apikey.



26
27
28
# File 'lib/cloudmunch_Ruby_sdk_v2/AppContext.rb', line 26

def apikey
  @apikey
end

#archiveLocationObject

Returns the value of attribute archiveLocation.



20
21
22
# File 'lib/cloudmunch_Ruby_sdk_v2/AppContext.rb', line 20

def archiveLocation
  @archiveLocation
end

#cloudprovidersObject

Returns the value of attribute cloudproviders.



15
16
17
# File 'lib/cloudmunch_Ruby_sdk_v2/AppContext.rb', line 15

def cloudproviders
  @cloudproviders
end

#domainNameObject

Returns the value of attribute domainName.



16
17
18
# File 'lib/cloudmunch_Ruby_sdk_v2/AppContext.rb', line 16

def domainName
  @domainName
end

#environmentIdObject

Returns the value of attribute environmentId.



28
29
30
# File 'lib/cloudmunch_Ruby_sdk_v2/AppContext.rb', line 28

def environmentId
  @environmentId
end

#integrationsObject

Returns the value of attribute integrations.



23
24
25
# File 'lib/cloudmunch_Ruby_sdk_v2/AppContext.rb', line 23

def integrations
  @integrations
end

#jobObject

Returns the value of attribute job.



18
19
20
# File 'lib/cloudmunch_Ruby_sdk_v2/AppContext.rb', line 18

def job
  @job
end

#masterurlObject

Returns the value of attribute masterurl.



14
15
16
# File 'lib/cloudmunch_Ruby_sdk_v2/AppContext.rb', line 14

def masterurl
  @masterurl
end

#projectObject

Returns the value of attribute project.



17
18
19
# File 'lib/cloudmunch_Ruby_sdk_v2/AppContext.rb', line 17

def project
  @project
end

#reportsLocationObject

Returns the value of attribute reportsLocation.



24
25
26
# File 'lib/cloudmunch_Ruby_sdk_v2/AppContext.rb', line 24

def reportsLocation
  @reportsLocation
end

#runnumberObject

Returns the value of attribute runnumber.



25
26
27
# File 'lib/cloudmunch_Ruby_sdk_v2/AppContext.rb', line 25

def runnumber
  @runnumber
end

#stepidObject

Returns the value of attribute stepid.



21
22
23
# File 'lib/cloudmunch_Ruby_sdk_v2/AppContext.rb', line 21

def stepid
  @stepid
end

#stepnameObject

Returns the value of attribute stepname.



27
28
29
# File 'lib/cloudmunch_Ruby_sdk_v2/AppContext.rb', line 27

def stepname
  @stepname
end

#targetServerObject

Returns the value of attribute targetServer.



22
23
24
# File 'lib/cloudmunch_Ruby_sdk_v2/AppContext.rb', line 22

def targetServer
  @targetServer
end

#workspaceLocationObject

Returns the value of attribute workspaceLocation.



19
20
21
# File 'lib/cloudmunch_Ruby_sdk_v2/AppContext.rb', line 19

def workspaceLocation
  @workspaceLocation
end

Instance Method Details

#get_data(keyname) ⇒ Object



54
55
56
# File 'lib/cloudmunch_Ruby_sdk_v2/AppContext.rb', line 54

def get_data(keyname)
    @AppContextParams[keyname] 
end

#load_data(param) ⇒ Object



50
51
52
# File 'lib/cloudmunch_Ruby_sdk_v2/AppContext.rb', line 50

def load_data(param)
    @AppContextParams = param
end