Class: Fog::Vcloud::MockDataClasses::MockVirtualMachineDisk

Inherits:
Base
  • Object
show all
Defined in:
lib/fog/vcloud/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::Vcloud::MockDataClasses::Base

Instance Method Details

#addressObject



580
581
582
# File 'lib/fog/vcloud/mock_data_classes.rb', line 580

def address
  self[:address].to_i
end

#sizeObject



571
572
573
# File 'lib/fog/vcloud/mock_data_classes.rb', line 571

def size
  self[:size].to_i
end

#vcloud_sizeObject



575
576
577
578
# File 'lib/fog/vcloud/mock_data_classes.rb', line 575

def vcloud_size
  # kilobytes
  size * 1024
end