lib/money/bank/oanda_currency.rb
##
# Build a URI for the given arguments.
#
# @return [URI::HTTP]
Build a URI for the given arguments.
Build a URI for the given arguments .
def build_uri(base, quote, data_set)
        URI::HTTPS.build(
          host: SERVICE_HOST,
          path: SERVICE_PATH,
          query: [
            "base=#{base}",
            "quote=#{quote}",
            "date_time=#{(Time.now.utc - 86_400).strftime('%Y-%m-%d')}",
            "data_set=#{data_set}",
            "api_key=#{access_key}"
          ].join('&')
        )
      end
def build_uri ( base , quote , data_set ) URI :: HTTPS . build ( host : SERVICE_HOST , path : SERVICE_PATH , query : [ "base=#{base}" , "quote=#{quote}" , "date_time=#{(Time.now.utc - 86_400).strftime('%Y-%m-%d')}" , "data_set=#{data_set}" , "api_key=#{access_key}" ] . join ( '&' ) ) end
Build a URI for the given arguments.
Build a URI for the given arguments .
None
URI::HTTP
base
<not_specific>
quote
<not_specific>
data_set
<not_specific>