JayaCurrencyConverter.Exchange (Currency Converter v0.1.0) View Source

This is the Exchange core module that fetch rates and calculate the amount

Link to this section Summary

Functions

The function fetch_rates_from_currency/1 receives a string with the currency.

Link to this section Functions

Link to this function

fetch_rates_from_currency(currency)

View Source

The function fetch_rates_from_currency/1 receives a string with the currency.

Returns a `float` value.

  iex>Exchange.fetch_rates_from_currency("BRL")
  6.418483