Class: Fog::Ecloud::MockDataClasses::MockVirtualMachineDisk
- Inherits:
-
Base
- Object
- Hash
- Base
- Fog::Ecloud::MockDataClasses::MockVirtualMachineDisk
show all
- Defined in:
- lib/fog/ecloud/mock_data_classes.rb
Instance Method Summary
collapse
Methods inherited from Base
#_parent, base_url, #base_url, base_url=, #first, #href, #initialize, #inspect, #last
Methods inherited from Hash
#symbolize_keys!
Instance Method Details
#address ⇒ Object
581
582
583
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 581
def address
self[:address].to_i
end
|
#size ⇒ Object
572
573
574
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 572
def size
self[:size].to_i
end
|
#vcloud_size ⇒ Object
576
577
578
579
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 576
def vcloud_size
size * 1024
end
|