Class: ServiceProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/cloudmunch_Ruby_sdk_v2/ServiceProvider.rb,
lib/cloudmunch_Ruby_sdk_v3/ServiceProvider.rb

Instance Method Summary collapse

Constructor Details

#initialize(providername) ⇒ ServiceProvider

Returns a new instance of ServiceProvider.



5
6
7
# File 'lib/cloudmunch_Ruby_sdk_v2/ServiceProvider.rb', line 5

def initialize(providername)
    @providername = providername
end

Instance Method Details

#get_data(keyname) ⇒ Object



17
18
19
20
21
22
23
# File 'lib/cloudmunch_Ruby_sdk_v2/ServiceProvider.rb', line 17

def get_data(keyname)
    if @SP_data.nil?
		return nil
	else
     @SP_data[keyname] 
    end
end

#load_data(param) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/cloudmunch_Ruby_sdk_v2/ServiceProvider.rb', line 9

def load_data(param)
	if param[@providername].nil?
		return nil
	else
		@SP_data = param[@providername]["configuration"]
    end
end