Sha256: 5c42a76cbdd71a2c3a48d6f3813f47637895bb19afde1c7f9114554e1e6977c3

Contents?: true

Size: 496 Bytes

Versions: 2

Compression:

Stored size: 496 Bytes

Contents

module Fog
  module Compute
    class StormOnDemand
      class Products < Fog::Collection
        model Fog::Compute::StormOnDemand::Product

        def get(product_code)
          prod = service.get_product(:code => product_code).body
          new(prod)
        end

        def get_product_code(options)
          service.get_product_code(options).body
        end

        def all(options = {})
          service.list_products(options).body['items']
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fog-storm_on_demand-0.1.0 lib/fog/compute/storm_on_demand/models/products.rb
fog-storm_on_demand-0.0.1 lib/fog/compute/storm_on_demand/models/products.rb