lib/money/bank/oanda_currency.rb
##
# Makes an api call to populate all of the exchange rates in the in
# memory store.
#
# Using Faraday to capture responses with error messages from the api,
# instead of generic OpenURI::HTTPError 400 Bad Request from [URI::HTTP]#read
Makes an api call to populate all of the exchange rates in the in
memory store.

Using Faraday to capture responses with error messages from the api,
instead of generic OpenURI::HTTPError 400 Bad Request from [URI::HTTP]#read
Makes an api call to populate all of the exchange rates in the in memory store . Using Faraday to capture responses with error messages from the api instead of generic OpenURI :: HTTPError 400 Bad Request from [ URI :: HTTP ] #read
def fetch_rates(base, quote)
        response = Faraday.get(build_uri(base, quote, @data_set).to_s)
        data = raise_or_return(response, base, quote)
        extract_rates(data)
      end
def fetch_rates ( base , quote ) response = Faraday . get ( build_uri ( base , quote , @data_set ) . to_s ) data = raise_or_return ( response , base , quote ) extract_rates ( data ) end
Makes an api call to populate all of the exchange rates in the in
memory store.
Makes an api call to populate all of the exchange rates in the in memory store .
base
<not_specific>
quote
<not_specific>