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
10 11 12 13 14 |
# File 'lib/fog/cloudstack/models/compute/disk_offerings.rb', line 10 def all( = {}) response = service.list_disk_offerings() disk_offerings_data = response["listdiskofferingsresponse"]["diskoffering"] || [] load(disk_offerings_data) end |
#get(disk_offering_id) ⇒ Object
16 17 18 19 20 |
# 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 |