Class: DigitalOcean::Client
- Inherits:
-
Object
- Object
- DigitalOcean::Client
- Includes:
- Droplets, HTTParty
- Defined in:
- lib/digital_ocean/client.rb,
lib/digital_ocean/client/droplets.rb
Defined Under Namespace
Modules: Droplets
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#client_id ⇒ Object
Returns the value of attribute client_id.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Droplets
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
13 14 15 16 17 18 |
# File 'lib/digital_ocean/client.rb', line 13 def initialize(={}) if [:client_id] && [:api_key] @client_id = [:client_id] @api_key = [:api_key] end end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
11 12 13 |
# File 'lib/digital_ocean/client.rb', line 11 def api_key @api_key end |
#client_id ⇒ Object
Returns the value of attribute client_id.
11 12 13 |
# File 'lib/digital_ocean/client.rb', line 11 def client_id @client_id end |