Class: Shutterstock::SubscriptionPrice
- Defined in:
- lib/client/subscription_price.rb
Constant Summary
Constants inherited from Driver
Instance Attribute Summary collapse
-
#local_amount ⇒ Object
readonly
Returns the value of attribute local_amount.
-
#local_currency ⇒ Object
readonly
Returns the value of attribute local_currency.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ SubscriptionPrice
constructor
A new instance of SubscriptionPrice.
Methods inherited from Driver
api, client, #client, #json_true?, #methods, #respond_to, #to_date
Constructor Details
#initialize(params = {}) ⇒ SubscriptionPrice
Returns a new instance of SubscriptionPrice.
5 6 7 8 9 10 |
# File 'lib/client/subscription_price.rb', line 5 def initialize(params={}) @hash = params @local_amount = params["local_amount"].to_f if params["local_amount"] # (number, optional), @local_currency = params["local_currency"] if params["local_currency"] # (string, optional) end |
Instance Attribute Details
#local_amount ⇒ Object (readonly)
Returns the value of attribute local_amount.
3 4 5 |
# File 'lib/client/subscription_price.rb', line 3 def local_amount @local_amount end |
#local_currency ⇒ Object (readonly)
Returns the value of attribute local_currency.
3 4 5 |
# File 'lib/client/subscription_price.rb', line 3 def local_currency @local_currency end |