Sha256: 63a0960963c498e057f4cf305f77394df53ca210f7f831da78c51a3dbb5a0a2c
Contents?: true
Size: 337 Bytes
Versions: 1
Compression:
Stored size: 337 Bytes
Contents
class MT940::Abnamro < MT940::Base def parse_tag_61 if @line.match(/^:61:\d{6}\d{4}(C|D)(\d+),(\d{0,2})/) type = $1 == 'D' ? -1 : 1 @transaction = MT940::Transaction.new(:bank_account => @bank_account, :amount => type * ($2 + '.' + $3).to_f) @transactions << @transaction @tag86 = false end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mt940-0.2.0 | lib/mt940/banks/abnamro.rb |