Class: Colombo::Client
- Inherits:
-
Object
- Object
- Colombo::Client
- Includes:
- Request
- Defined in:
- lib/colombo/client.rb
Instance Method Summary collapse
- #droplets ⇒ Object
- #images ⇒ 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
#droplets ⇒ Object
19 20 21 |
# File 'lib/colombo/client.rb', line 19 def droplets Droplets.new(self) end |
#images ⇒ Object
27 28 29 |
# File 'lib/colombo/client.rb', line 27 def images Images.new(self) end |
#regions ⇒ Object
23 24 25 |
# File 'lib/colombo/client.rb', line 23 def regions Regions.new(self) end |
#sizes ⇒ Object
31 32 33 |
# File 'lib/colombo/client.rb', line 31 def sizes Sizes.new(self) end |
#ssh_keys ⇒ Object
35 36 37 |
# File 'lib/colombo/client.rb', line 35 def ssh_keys SshKeys.new(self) end |