SoftBank.Note.Currency.to_atom
You're seeing just the function
to_atom
, go back to SoftBank.Note.Currency module for more information.
Specs
to_atom(SoftBank.Note.t() | String.t() | atom()) :: atom()
Returns the atom representation of the currency key An ArgumentError is raised if the currency doesn’t exist.
Example:
iex> SoftBank.Note.Currency.to_atom("usd")
:USD
iex> SoftBank.Note.Currency.to_atom(:WRONG)
** (ArgumentError) currency WRONG doesn’t exist