currency_conversion v0.3.0 CurrencyConversion.Rates
This is the CurrencyConversion.Rates
struct.
Summary
Functions
Defines a Currency DataSet
Types
Functions
Defines a Currency DataSet
Values
base
- Defines the base currency (all other currencies are derived from the base currency)- Type:
atom
- Type:
- Example:
:CHF
rates
- Type:
%{atom => float}
- Type:
- Example:
%{CHF: 1.23, EUR: 1.132}
Examples
iex> %CurrencyConversion.Rates{base: :EUR, rates: %{AUD: 1.4205, BGN: 1.9558}}
%CurrencyConversion.Rates{base: :EUR, rates: %{AUD: 1.4205, BGN: 1.9558}}