class XEClient::HistoricRatePeriodResponse

Private Instance Methods

default_from() click to toggle source
# File lib/xe_client/responses/historic_rate_period_response.rb, line 9
def default_from
  response_body[:from]
end
default_to() click to toggle source
# File lib/xe_client/responses/historic_rate_period_response.rb, line 13
def default_to
  to = response_body[:to]

  return [] if to.blank?

  to.each_with_object([]) do |(currency, quote_args), arr|
    quote_args.each do |quote_arg|
      arr << Quote.new(quote_arg.merge(quotecurrency: currency))
    end
  end
end