Sha256: 01a6f8ec052093ad51745b0051501153e55b100c8f2ccc54c9e28d566c238b6a

Contents?: true

Size: 401 Bytes

Versions: 1

Compression:

Stored size: 401 Bytes

Contents

module MT940Structured::Parsers::Ing
  class Parser < MT940Structured::Parsers::Base
    def initialize
      super "Ing", TransactionParsers.new
    end
  end

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

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

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zilverline-mt940-2.0 lib/mt940_structured/parsers/ing/parser.rb