Class: Fog::Compute::StormOnDemand::Product
- Defined in:
- lib/fog/storm_on_demand/models/compute/product.rb
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Product
constructor
A new instance of Product.
- #price(options) ⇒ Object
- #starting_price ⇒ Object
Methods inherited from Model
#inspect, #reload, #symbolize_keys, #to_json, #wait_for
Methods included from Attributes::ClassMethods
#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes
Methods included from Fog::Core::DeprecatedConnectionAccessors
#connection, #connection=, #prepare_service_value
Methods included from Attributes::InstanceMethods
#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #persisted?, #requires, #requires_one
Constructor Details
#initialize(attributes = {}) ⇒ Product
Returns a new instance of Product.
22 23 24 |
# File 'lib/fog/storm_on_demand/models/compute/product.rb', line 22 def initialize(attributes={}) super end |
Instance Method Details
#price(options) ⇒ Object
26 27 28 29 |
# File 'lib/fog/storm_on_demand/models/compute/product.rb', line 26 def price() requires :identity service.get_product_price({:code => identity}.merge!()).body end |
#starting_price ⇒ Object
31 32 33 34 |
# File 'lib/fog/storm_on_demand/models/compute/product.rb', line 31 def starting_price requires :identity service.get_product_starting_price(:code => identity).body['items'] end |