Sha256: a361d4185733d54b2b69a5c65ba149bea7d7946ee1de22b005259536160e15e5
Contents?: true
Size: 738 Bytes
Versions: 55
Compression:
Stored size: 738 Bytes
Contents
require 'fog/core/collection' require 'fog/cloudstack/models/compute/disk_offering' module Fog module Compute class Cloudstack class DiskOfferings < Fog::Collection model Fog::Compute::Cloudstack::DiskOffering def all(options = {}) response = service.list_disk_offerings(options) disk_offerings_data = response["listdiskofferingsresponse"]["diskoffering"] || [] load(disk_offerings_data) end 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 end end end end
Version data entries
55 entries across 55 versions & 3 rubygems