SoftBank.Currency.Conversion.Rates.__struct__
You're seeing just the function
__struct__
, go back to SoftBank.Currency.Conversion.Rates module for more information.
Defines a Currency DataSet
Values
base
- Defines the base currency (all other currencies are derived from the base currency)- Type:
atom
- Example:
:CHF
- Type:
rates
- Type:
%{atom => float}
- Example:
%{CHF: 1.23, EUR: 1.132}
- Type:
Examples
iex> %CurrencyConversion.Rates{base: :EUR, rates: %{AUD: 1.4205, BGN: 1.9558}}
%CurrencyConversion.Rates{base: :EUR, rates: %{AUD: 1.4205, BGN: 1.9558}}