lib/money/bank/currencylayer.rb
##
# Queries for the requested rate and returns it.
#
# @param [String, Symbol, Currency] from Currency to convert from
# @param [String, Symbol, Currency] to Currency to convert to
#
# @return [BigDecimal] The requested rate.
Queries for the requested rate and returns it.
Queries for the requested rate and returns it .
def fetch_rate(from, to)
        from, to = Currency.wrap(from), Currency.wrap(to)
        uri = build_uri(from, to)
        data = perform_request(uri)
        extract_rate(data, from, to)
      end
def fetch_rate ( from , to ) from , to = Currency . wrap ( from ) , Currency . wrap ( to ) uri = build_uri ( from , to ) data = perform_request ( uri ) extract_rate ( data , from , to ) end
Queries for the requested rate and returns it.
Queries for the requested rate and returns it .
The requested rate.
The requested rate .
BigDecimal
from
<not_specific>
to
<not_specific>
<not_specific>
None