Sha256: 0cccf31e93872d41517c47d781efeefecfca930855de695e749d3b3797c8f03a
Contents?: true
Size: 655 Bytes
Versions: 1
Compression:
Stored size: 655 Bytes
Contents
class MT940::Rabobank < MT940::Base def self.determine_bank(*args) self if args[0].match(/^:940:/) end def parse_tag_61 if @line.match(/^:61:(\d{6})(C|D)(\d+),(\d{0,2})\w{4}(.{16})(.+)$/) type = $2 == 'D' ? -1 : 1 @transaction = MT940::Transaction.new(:bank_account => @bank_account, :amount => type * ($3 + '.' + $4).to_f, :bank => @bank) @transaction.date = parse_date($1) @transaction.contra_account = $5.strip @transaction.contra_account_owner = $6.strip @transactions << @transaction end end def parse_tag_86 @transaction.description = $1.strip if @line.match(/^:86:(.*)$/) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mt940-0.5.1 | lib/mt940/banks/rabobank.rb |