Class: ServiceProvider
- Inherits:
-
Object
- Object
- ServiceProvider
- Defined in:
- ServiceProvider.rb
Instance Method Summary (collapse)
- - (Object) get_data(keyname)
-
- (ServiceProvider) initialize(providername)
constructor
A new instance of ServiceProvider.
- - (Object) load_data(param)
Constructor Details
- (ServiceProvider) initialize(providername)
Returns a new instance of ServiceProvider
5 6 7 |
# File 'ServiceProvider.rb', line 5 def initialize(providername) @providername = providername end |
Instance Method Details
- (Object) get_data(keyname)
17 18 19 20 21 22 23 |
# File 'ServiceProvider.rb', line 17 def get_data(keyname) if @SP_data.nil? return nil else @SP_data[keyname] end end |
- (Object) load_data(param)
9 10 11 12 13 14 15 |
# File 'ServiceProvider.rb', line 9 def load_data(param) if param[@providername].nil? return nil else @SP_data = param[@providername]["configuration"] end end |