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

Version Path
fog-1.22.0 lib/fog/cloudstack/models/compute/disk_offerings.rb
fog-1.21.0 lib/fog/cloudstack/models/compute/disk_offerings.rb
fog-maestrodev-1.20.0.20140305101839 lib/fog/cloudstack/models/compute/disk_offerings.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/cloudstack/models/compute/disk_offerings.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/cloudstack/models/compute/disk_offerings.rb
fog-1.20.0 lib/fog/cloudstack/models/compute/disk_offerings.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/cloudstack/models/compute/disk_offerings.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/cloudstack/models/compute/disk_offerings.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/cloudstack/models/compute/disk_offerings.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/cloudstack/models/compute/disk_offerings.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/cloudstack/models/compute/disk_offerings.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/cloudstack/models/compute/disk_offerings.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/cloudstack/models/compute/disk_offerings.rb
fog-1.19.0 lib/fog/cloudstack/models/compute/disk_offerings.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/cloudstack/models/compute/disk_offerings.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/cloudstack/models/compute/disk_offerings.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/cloudstack/models/compute/disk_offerings.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/cloudstack/models/compute/disk_offerings.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/cloudstack/models/compute/disk_offerings.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/cloudstack/models/compute/disk_offerings.rb