Initial commit

This commit is contained in:
2024-03-05 06:02:58 -05:00
commit a32c7a5b74
42 changed files with 1395 additions and 0 deletions

9
lib/iban_ex/serialize.ex Normal file
View File

@@ -0,0 +1,9 @@
defmodule IbanEx.Serialize do
alias IbanEx.{Iban, Formatter}
@spec to_string(Iban.t()) :: String.t()
def to_string(iban), do: Formatter.format(iban)
@spec to_map(Iban.t()) :: Map.t()
def to_map(iban), do: Map.from_struct(iban)
end