Class: Joyent::Package

Inherits:
Object
  • Object
show all
Defined in:
lib/joyent/package.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ Package

Returns a new instance of Package.



5
6
7
8
9
10
11
# File 'lib/joyent/package.rb', line 5

def initialize(attributes)
  @name = attributes["name"]
  @memory = attributes["memory"]
  @disk = attributes["disk"]
  @swap = attributes["swap"]
  @default = attributes["default"]
end

Instance Attribute Details

#defaultObject (readonly)

Returns the value of attribute default.



3
4
5
# File 'lib/joyent/package.rb', line 3

def default
  @default
end

#diskObject (readonly)

Returns the value of attribute disk.



3
4
5
# File 'lib/joyent/package.rb', line 3

def disk
  @disk
end

#memoryObject (readonly)

Returns the value of attribute memory.



3
4
5
# File 'lib/joyent/package.rb', line 3

def memory
  @memory
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/joyent/package.rb', line 3

def name
  @name
end

#swapObject (readonly)

Returns the value of attribute swap.



3
4
5
# File 'lib/joyent/package.rb', line 3

def swap
  @swap
end