lib/money/bank/currencylayer.rb
##
# Build a URI for the given arguments.
#
# @param [Currency] from The currency to convert from.
# @param [Currency] to The currency to convert to.
#
# @return [URI::HTTP]
Build a URI for the given arguments.
Build a URI for the given arguments .
def build_uri(from, to)
        raise AccessError if access_key.nil? || access_key.empty?
        uri = URI::HTTP.build(
          :host  => SERVICE_HOST,
          :path  => SERVICE_PATH,
          :query => "access_key=#{access_key}&source=#{from}&currencies=#{to}"
        )
      end
def build_uri ( from , to ) raise AccessError if access_key . nil? || access_key . empty? uri = URI :: HTTP . build ( :host => SERVICE_HOST , :path => SERVICE_PATH , :query => "access_key=#{access_key}&source=#{from}&currencies=#{to}" ) end
Build a URI for the given arguments.
Build a URI for the given arguments .
None
URI::HTTP
from
<not_specific>
to
<not_specific>
<not_specific>
None