Class: Fog::Compute::StormOnDemand::Products
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::StormOnDemand::Products
- Defined in:
- lib/fog/storm_on_demand/models/compute/products.rb
Instance Method Summary collapse
Instance Method Details
#all(options = {}) ⇒ Object
20 21 22 |
# File 'lib/fog/storm_on_demand/models/compute/products.rb', line 20 def all(={}) service.list_products().body['items'] end |
#get(product_code) ⇒ Object
11 12 13 14 |
# File 'lib/fog/storm_on_demand/models/compute/products.rb', line 11 def get(product_code) prod = service.get_product(:code => product_code).body new(prod) end |
#get_product_code(options) ⇒ Object
16 17 18 |
# File 'lib/fog/storm_on_demand/models/compute/products.rb', line 16 def get_product_code() service.get_product_code().body end |