Class: Fog::Compute::StormOnDemand::Product

Inherits:
Model
  • Object
show all
Defined in:
lib/fog/compute/storm_on_demand/models/product.rb

Instance Method Summary collapse

Instance Method Details

#price(options) ⇒ Object



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

def price(options)
  requires :identity
  service.get_product_price({:code => identity}.merge!(options)).body
end

#starting_priceObject



24
25
26
27
# File 'lib/fog/compute/storm_on_demand/models/product.rb', line 24

def starting_price
  requires :identity
  service.get_product_starting_price(:code => identity).body["items"]
end