Class: MT940Structured::Parsers::Ing::TransactionParsers

Inherits:
Object
  • Object
show all
Defined in:
lib/mt940_structured/parsers/ing/parser.rb

Instance Method Summary collapse

Instance Method Details

#for_format(is_structured) ⇒ Object



13
14
15
# File 'lib/mt940_structured/parsers/ing/parser.rb', line 13

def for_format(is_structured)
  is_structured ? StructuredTransactionParser.new : TransactionParser.new
end

#structured?(line_61) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/mt940_structured/parsers/ing/parser.rb', line 9

def structured?(line_61)
  line_61.match /EREF|PREF|MARF|\d{16}/
end