Sha256: 509c31b03eb2a771226e52b8d746fc0d15e5b3e437318712e100993c55a78659
Contents?: true
Size: 581 Bytes
Versions: 53
Compression:
Stored size: 581 Bytes
Contents
require 'fog/core/collection' require 'fog/storm_on_demand/models/compute/product' 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
53 entries across 53 versions & 3 rubygems