Money v0.3.0 Money.ExchangeRates.Callback behaviour View Source
Default exchange rates retrieval callback module.
When exchange rates are successfully retrieved, the function
rates_retrieved/2
is called to perform any desired serialization or
proocessing.
Link to this section Summary
Functions
Callback function invoked when exchange rates are retrieved
Callbacks
Defines the behaviour to retrieve exchange rates from an external data source
Link to this section Functions
Link to this function
rates_retrieved(rates, retrieved_at)
View Source
rates_retrieved(%{}, %DateTime{calendar: term, day: term, hour: term, microsecond: term, minute: term, month: term, second: term, std_offset: term, time_zone: term, utc_offset: term, year: term, zone_abbr: term}) :: :ok
Callback function invoked when exchange rates are retrieved.
Link to this section Callbacks
Link to this callback
rates_retrieved(%{}, %)
View Source
rates_retrieved(%{}, %DateTime{calendar: term, day: term, hour: term, microsecond: term, minute: term, month: term, second: term, std_offset: term, time_zone: term, utc_offset: term, year: term, zone_abbr: term}) :: :ok
Defines the behaviour to retrieve exchange rates from an external data source.