Method: BAI2::Transaction#to_s
- Defined in:
- lib/bai2_ruby/transaction.rb
#to_s ⇒ Object
rubocop:disable Style/FormatString
34 35 36 |
# File 'lib/bai2_ruby/transaction.rb', line 34 def to_s "#{credit? ? "Credit" : "Debit"} transaction (#{@type}): $#{"%.2f" % @amount.abs} - #{@text}" end |