Class: CFONB::LineParser::Operation

Inherits:
Base
  • Object
show all
Defined in:
lib/cfonb/line_parser/operation.rb

Constant Summary collapse

DICTIONARY =
[
  ['internal_operation_code', (7..10)],
  ['interbank_operation_code', (32..33)],
  ['rejection_code', (40..41)],
  ['value_date', (42..47), proc { |value, instance| instance.send(:parse_date, value) }],
  ['label', (48..79)],
  ['number', (81..87), proc { _1.to_i }], # rubocop:disable Style/SymbolProc
  ['exoneration_code', 88],
  ['unavailability_code', 89],
  ['reference', (104..119)],
  ['amount', (90..103), proc { |value, instance| instance.send(:parse_amount, value) }],
].freeze

Constants inherited from Base

Base::AMOUNT_SPECIFIERS, Base::BASE_DICTIONARY

Method Summary

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from CFONB::LineParser::Base