Money.ExchangeRates.init
You're seeing just the callback
init
, go back to Money.ExchangeRates module for more information.
Specs
init(config :: Money.ExchangeRates.Config.t()) :: Money.ExchangeRates.Config.t()
Given the default configuration, returns an updated configuration at runtime during exchange rates service startup.
This callback is optional. If the callback is not defined, the default
configuration returned by Money.ExchangeRates.default_config/0
is used.
config
is the configuration returned byMoney.ExchangeRates.default_config/0
The callback is expected to return a %Money.ExchangeRates.Config.t()
struct
which may have been updated. The configuration key :retriever_options
is
available for any service-specific configuration.