class Fog::Ovirt::Compute::Volume

Attributes

raw[RW]

Public Instance Methods

size_gb() click to toggle source
# File lib/fog/ovirt/models/compute/volume.rb, line 22
def size_gb
  attributes[:size_gb] ||= attributes[:size].to_i / Fog::Ovirt::Compute::DISK_SIZE_TO_GB if attributes[:size]
end
size_gb=(size) click to toggle source
# File lib/fog/ovirt/models/compute/volume.rb, line 26
def size_gb=(size)
  attributes[:size] = size.to_i * Fog::Ovirt::Compute::DISK_SIZE_TO_GB if size
end
to_s() click to toggle source
# File lib/fog/ovirt/models/compute/volume.rb, line 30
def to_s
  id
end