Class: Braintree::ExchangeRate
- Inherits:
-
Object
- Object
- Braintree::ExchangeRate
- Includes:
- BaseModule
- Defined in:
- lib/braintree/exchange_rate.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(gateway, attributes) ⇒ ExchangeRate
constructor
A new instance of ExchangeRate.
Methods included from BaseModule
Methods included from BaseModule::Methods
#copy_instance_variables_from_object, #return_object_or_raise, #set_instance_variables_from_hash, #singleton_class
Constructor Details
#initialize(gateway, attributes) ⇒ ExchangeRate
Returns a new instance of ExchangeRate.
5 6 7 |
# File 'lib/braintree/exchange_rate.rb', line 5 def initialize(gateway, attributes) set_instance_variables_from_hash(attributes) end |
Class Method Details
.generate(exchange_rate_quote_request) ⇒ Object
9 10 11 |
# File 'lib/braintree/exchange_rate.rb', line 9 def self.generate(exchange_rate_quote_request) Configuration.gateway.exchange_rate_quote.generate(exchange_rate_quote_request) end |