Class: Joyent::Machines
- Inherits:
-
Object
- Object
- Joyent::Machines
- Defined in:
- lib/joyent/machines.rb
Instance Method Summary collapse
- #create(attributes = {}) ⇒ Object
- #get(id) ⇒ Object
-
#initialize(connection) ⇒ Machines
constructor
A new instance of Machines.
- #list ⇒ Object
Constructor Details
#initialize(connection) ⇒ Machines
Returns a new instance of Machines.
3 4 5 |
# File 'lib/joyent/machines.rb', line 3 def initialize(connection) @connection = connection end |
Instance Method Details
#create(attributes = {}) ⇒ Object
15 16 17 |
# File 'lib/joyent/machines.rb', line 15 def create(attributes = {}) Joyent::Machine.new(@connection, @connection.execute(:post, "/machines", attributes)) end |