Class: Colombo::Client
- Inherits:
-
Object
- Object
- Colombo::Client
- Includes:
- Request
- Defined in:
- lib/colombo/client.rb
Instance Method Summary collapse
- #droplet(droplet_id) ⇒ Object
- #droplets ⇒ Object
- #images(options = {}) ⇒ Object
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
- #regions ⇒ Object
- #sizes ⇒ Object
- #ssh_keys ⇒ Object
Methods included from Request
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
10 11 12 13 14 15 16 17 |
# File 'lib/colombo/client.rb', line 10 def initialize(={}) = Colombo..merge() Configuration::VALID_CONFIG_KEYS.each do |key| self.send("#{key}=", [key]) end end |
Instance Method Details
#droplet(droplet_id) ⇒ Object
19 20 21 |
# File 'lib/colombo/client.rb', line 19 def droplet(droplet_id) Droplet.find(self, droplet_id) end |
#droplets ⇒ Object
23 24 25 |
# File 'lib/colombo/client.rb', line 23 def droplets Droplets.new(self) end |
#images(options = {}) ⇒ Object
31 32 33 |
# File 'lib/colombo/client.rb', line 31 def images(={}) Images.new(self, ) end |