SoftBank.Note.abs
You're seeing just the function
abs
, go back to SoftBank.Note module for more information.
Specs
Returns a SoftBank.Note
with the arithmetical absolute of the amount.
Examples:
iex> SoftBank.Note.new(-100, :USD) |> SoftBank.Note.abs
%SoftBank.Note{amount: 100, currency: :USD}
iex> SoftBank.Note.new(100, :USD) |> SoftBank.Note.abs
%SoftBank.Note{amount: 100, currency: :USD}