Class: Fog::Compute::StormOnDemand::Products

Inherits:
Fog::Collection
  • Object
show all
Defined in:
lib/fog/storm_on_demand/models/compute/products.rb

Instance Method Summary collapse

Instance Method Details

#all(options = {}) ⇒ Object



19
20
21
# File 'lib/fog/storm_on_demand/models/compute/products.rb', line 19

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

#get(product_code) ⇒ Object



10
11
12
13
# File 'lib/fog/storm_on_demand/models/compute/products.rb', line 10

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

#get_product_code(options) ⇒ Object



15
16
17
# File 'lib/fog/storm_on_demand/models/compute/products.rb', line 15

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