class Fog::Compute::Cloudstack::DiskOfferings

Public Instance Methods

all(options = {}) click to toggle source
# File lib/fog/cloudstack/models/compute/disk_offerings.rb, line 10
def all(options = {})
  response = service.list_disk_offerings(options)
  disk_offerings_data = response["listdiskofferingsresponse"]["diskoffering"] || []
  load(disk_offerings_data)
end
get(disk_offering_id) click to toggle source
# File lib/fog/cloudstack/models/compute/disk_offerings.rb, line 16
def get(disk_offering_id)
  response = service.list_disk_offerings('id' => disk_offering_id)
  disk_offering_data = response["listdiskofferingsresponse"]["diskoffering"].first
  new(disk_offering_data)
end