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

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

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Product

Returns a new instance of Product.



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

def initialize(attributes={})
  super
end

Instance Method Details

#price(options) ⇒ Object



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

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

#starting_priceObject



30
31
32
33
# File 'lib/fog/storm_on_demand/models/compute/product.rb', line 30

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