Class: Cloudmate::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/cloudmate/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Configuration

Returns a new instance of Configuration.



5
6
7
8
9
10
11
12
# File 'lib/cloudmate/configuration.rb', line 5

def initialize(options={})
  options.each_pair do |name, value|
    setter = "#{name}="
    if respond_to?(setter)
      public_send(setter, value)
    end
  end
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



3
4
5
# File 'lib/cloudmate/configuration.rb', line 3

def api_key
  @api_key
end