Sha256: 8e5bab3cfbf943f8884e99aecd3473c71838b6e176e1cfc9bbb2772ceb325522
Contents?: true
Size: 583 Bytes
Versions: 1
Compression:
Stored size: 583 Bytes
Contents
module Bankscrap class Transaction include Utils::Inspectable attr_accessor :id, :amount, :currency, :effective_date, :description, :balance, :account def initialize(params = {}) params.each { |key, value| send "#{key}=", value } end def to_s "#{effective_date.strftime('%d/%m/%Y')} #{description.ljust(45)} #{amount.format.rjust(20)}" end private def inspect_attributes [ :id, :amount, :currency, :effective_date, :description, :balance ] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bankscrap-1.0.0 | lib/bankscrap/transaction.rb |