Class: Shutterstock::SubscriptionPrice

Inherits:
Driver
  • Object
show all
Defined in:
lib/client/subscription_price.rb

Constant Summary

Constants inherited from Driver

Driver::TRUTHY_JSON_VALUES

Instance Attribute Summary collapse

Instance Method Summary collapse

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_amountObject (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_currencyObject (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