Class: RMC::Item::Volume

Inherits:
Object
  • Object
show all
Defined in:
lib/rmc/item/volume.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#connectionObject

Returns the value of attribute connection.



6
7
8
# File 'lib/rmc/item/volume.rb', line 6

def connection
  @connection
end

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/rmc/item/volume.rb', line 8

def name
  @name
end

#sizeMiBObject (readonly)

Returns the value of attribute sizeMiB.



9
10
11
# File 'lib/rmc/item/volume.rb', line 9

def sizeMiB
  @sizeMiB
end