Method: Joyent::Machine#initialize

Defined in:
lib/joyent/machine.rb

#initialize(connection, attributes) ⇒ Machine

Returns a new instance of Machine.



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/joyent/machine.rb', line 5

def initialize(connection, attributes)
  @connection = connection

  @id = attributes["id"]
  @name = attributes["name"]
  @type = attributes["type"]
  @state = attributes["state"]
  @dataset = attributes["dataset"]
  @memory = attributes["memory"]
  @disk = attributes["disk"]
  @ips = attributes["ips"]
  @metadata = attributes["metadata"]
  @created = attributes["created"]
  @updated = attributes["updated"]
end