Class: Cloudmate::Configuration
- Inherits:
-
Object
- Object
- Cloudmate::Configuration
- Defined in:
- lib/cloudmate/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Configuration
constructor
A new instance of Configuration.
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(={}) .each_pair do |name, value| setter = "#{name}=" if respond_to?(setter) public_send(setter, value) end end end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/cloudmate/configuration.rb', line 3 def api_key @api_key end |