Sha256: bd92492d9c544df38aac5ff77f1f415ff4f4d08fcaeaa1e2196a7d4f3dbb1fb4
Contents?: true
Size: 641 Bytes
Versions: 2
Compression:
Stored size: 641 Bytes
Contents
module Clieop module ProcessInfo class Batch attr_accessor :info, :transactions def initialize self.transactions = [] self.info = {} end def add_record record, current_transaction = nil if [:batch_header, :batch_info, :batch_footer].include?(record.type) info.merge!(record.data.except(:record_code, :filler)) elsif current_transaction if record == current_transaction.record transactions << current_transaction else current_transaction.add_record(record) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
clieop-1.0.1 | lib/clieop/process_info/batch.rb |
clieop-1.0.0 | lib/clieop/process_info/batch.rb |