Methods

Class/Module Index [+]

Quicksearch

Fog::Compute::Cloudstack::Volumes

Public Instance Methods

all() click to toggle source
# File lib/fog/cloudstack/models/compute/volumes.rb, line 12
def all
  data = service.list_volumes["listvolumesresponse"]["volume"] || []
  load(data)
end
get(volume_id) click to toggle source
# File lib/fog/cloudstack/models/compute/volumes.rb, line 17
def get(volume_id)
  if volume = service.list_volumes('id' => volume_id)["listvolumesresponse"]["volume"].first
    new(volume)
  end
rescue Fog::Compute::Cloudstack::BadRequest
  nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.