Class: RMC::Item::Volume
- Inherits:
-
Object
- Object
- RMC::Item::Volume
- Defined in:
- lib/rmc/item/volume.rb
Instance Attribute Summary collapse
-
#connection ⇒ Object
Returns the value of attribute connection.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#sizeMiB ⇒ Object
readonly
Returns the value of attribute sizeMiB.
Instance Method Summary collapse
-
#initialize(connection, data) ⇒ Volume
constructor
A new instance of Volume.
Constructor Details
#initialize(connection, data) ⇒ Volume
Returns a new instance of Volume.
11 12 13 14 15 16 17 18 |
# File 'lib/rmc/item/volume.rb', line 11 def initialize(connection, data) @connection = connection @name = data['name'] @status = data['sizeMiB'] end |
Instance Attribute Details
#connection ⇒ Object
Returns the value of attribute connection.
6 7 8 |
# File 'lib/rmc/item/volume.rb', line 6 def connection @connection end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/rmc/item/volume.rb', line 8 def name @name end |
#sizeMiB ⇒ Object (readonly)
Returns the value of attribute sizeMiB.
9 10 11 |
# File 'lib/rmc/item/volume.rb', line 9 def sizeMiB @sizeMiB end |