Class: Fog::Compute::StormOnDemand::Product
- Inherits:
-
Model
- Object
- Model
- Fog::Compute::StormOnDemand::Product
- Defined in:
- lib/fog/storm_on_demand/models/compute/product.rb
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Product
constructor
A new instance of Product.
- #price(options) ⇒ Object
- #starting_price ⇒ Object
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() requires :identity service.get_product_price({:code => identity}.merge!()).body end |
#starting_price ⇒ Object
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 |