class GoCardlessPro::Resources::CurrencyExchangeRate
Currency exchange rates from our foreign exchange provider.
Attributes
Public Class Methods
Source
# File lib/gocardless_pro/resources/currency_exchange_rate.rb, line 19 def initialize(object, response = nil) @object = object @rate = object['rate'] @source = object['source'] @target = object['target'] @time = object['time'] @response = response end
Initialize a currency_exchange_rate resource instance @param object [Hash] an object returned from the API
Public Instance Methods
Source
# File lib/gocardless_pro/resources/currency_exchange_rate.rb, line 29 def api_response ApiResponse.new(@response) end
Source
# File lib/gocardless_pro/resources/currency_exchange_rate.rb, line 34 def to_h @object end
Provides the currency_exchange_rate resource as a hash of all its readable attributes