Parent

Class/Module Index [+]

Quicksearch

Fog::Compute::Vsphere::Volume

Constants

DISK_SIZE_TO_GB

Public Class Methods

new(attributes={} ) click to toggle source
# File lib/fog/vsphere/models/compute/volume.rb, line 17
def initialize(attributes={} )
  super defaults.merge(attributes)
end

Public Instance Methods

size_gb() click to toggle source
# File lib/fog/vsphere/models/compute/volume.rb, line 21
def size_gb
  attributes[:size_gb] ||= attributes[:size].to_i / DISK_SIZE_TO_GB if attributes[:size]
end
size_gb=(s) click to toggle source
# File lib/fog/vsphere/models/compute/volume.rb, line 25
def size_gb= s
  attributes[:size] = s.to_i * DISK_SIZE_TO_GB if s
end
to_s() click to toggle source
# File lib/fog/vsphere/models/compute/volume.rb, line 29
def to_s
  name
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.