Class: Fog::Ecloud::MockDataClasses::MockVirtualMachineDisk

Inherits:
Base
  • Object
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

Constructor Details

This class inherits a constructor from Fog::Ecloud::MockDataClasses::Base

Instance Method Details

#addressObject



579
580
581
# File 'lib/fog/ecloud/mock_data_classes.rb', line 579

def address
  self[:address].to_i
end

#sizeObject



570
571
572
# File 'lib/fog/ecloud/mock_data_classes.rb', line 570

def size
  self[:size].to_i
end

#vcloud_sizeObject



574
575
576
577
# File 'lib/fog/ecloud/mock_data_classes.rb', line 574

def vcloud_size
  # kilobytes
  size * 1024
end