Sha256: b3194f8153fd2f2686256d30aa6ed32eba2dfa66d6cd95d8162f47741a545aa6
Contents?: true
Size: 578 Bytes
Versions: 15
Compression:
Stored size: 578 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
15 entries across 15 versions & 4 rubygems