Class: Joyent::Package
- Inherits:
-
Object
- Object
- Joyent::Package
- Defined in:
- lib/joyent/package.rb
Instance Attribute Summary collapse
-
#default ⇒ Object
readonly
Returns the value of attribute default.
-
#disk ⇒ Object
readonly
Returns the value of attribute disk.
-
#memory ⇒ Object
readonly
Returns the value of attribute memory.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#swap ⇒ Object
readonly
Returns the value of attribute swap.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Package
constructor
A new instance of Package.
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
#default ⇒ Object (readonly)
Returns the value of attribute default.
3 4 5 |
# File 'lib/joyent/package.rb', line 3 def default @default end |
#disk ⇒ Object (readonly)
Returns the value of attribute disk.
3 4 5 |
# File 'lib/joyent/package.rb', line 3 def disk @disk end |
#memory ⇒ Object (readonly)
Returns the value of attribute memory.
3 4 5 |
# File 'lib/joyent/package.rb', line 3 def memory @memory end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/joyent/package.rb', line 3 def name @name end |
#swap ⇒ Object (readonly)
Returns the value of attribute swap.
3 4 5 |
# File 'lib/joyent/package.rb', line 3 def swap @swap end |