Sha256: 6051dc2b96f6453ca4dc389822cd8c517882ac74bdebc138353a9900ef34a3ab
Contents?: true
Size: 579 Bytes
Versions: 2
Compression:
Stored size: 579 Bytes
Contents
module Clieop module ProcessInfo class Transaction attr_accessor :info, :descriptions, :record def initialize(record) self.record = record self.info = record.data.except(:record_code) end def add_record record unless record.type == :transaction_description info[record.type] = record.data.except(:record_code, :filler) else info[:transaction_descriptions] ||= [] info[:transaction_descriptions] << record.data[:description] 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/transaction.rb |
clieop-1.0.0 | lib/clieop/process_info/transaction.rb |