Class: Fog::Compute::Cloudstack::DiskOfferings
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::Cloudstack::DiskOfferings
- Defined in:
- lib/fog/cloudstack/models/compute/disk_offerings.rb
Instance Method Summary collapse
Instance Method Details
#all(options = {}) ⇒ Object
12 13 14 15 16 |
# File 'lib/fog/cloudstack/models/compute/disk_offerings.rb', line 12 def all( = {}) response = service.list_disk_offerings() disk_offerings_data = response["listdiskofferingsresponse"]["diskoffering"] || [] load(disk_offerings_data) end |
#get(disk_offering_id) ⇒ Object
18 19 20 21 22 |
# File 'lib/fog/cloudstack/models/compute/disk_offerings.rb', line 18 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 |