Module: Norma43::LineHandlers
- Defined in:
- lib/norma43/line_handlers.rb
Defined Under Namespace
Classes: Handler
Class Method Summary collapse
- .account_end ⇒ Object
- .account_start ⇒ Object
- .additional_currency ⇒ Object
- .additional_item ⇒ Object
- .document_end ⇒ Object
- .document_start ⇒ Object
- .mapping ⇒ Object
- .transaction ⇒ Object
Class Method Details
.account_end ⇒ Object
29 30 31 |
# File 'lib/norma43/line_handlers.rb', line 29 def self.account_end Handler.new LineParsers::AccountEnd, LineProcessors::AccountEnd end |
.account_start ⇒ Object
25 26 27 |
# File 'lib/norma43/line_handlers.rb', line 25 def self.account_start Handler.new LineParsers::AccountStart, LineProcessors::AccountStart end |
.additional_currency ⇒ Object
41 42 43 |
# File 'lib/norma43/line_handlers.rb', line 41 def self.additional_currency Handler.new LineParsers::AdditionalCurrency, LineProcessors::AdditionalCurrency end |
.additional_item ⇒ Object
37 38 39 |
# File 'lib/norma43/line_handlers.rb', line 37 def self.additional_item Handler.new LineParsers::AdditionalItem, LineProcessors::AdditionalItem end |
.document_end ⇒ Object
21 22 23 |
# File 'lib/norma43/line_handlers.rb', line 21 def self.document_end Handler.new LineParsers::DocumentEnd, LineProcessors::DocumentEnd end |
.document_start ⇒ Object
17 18 19 |
# File 'lib/norma43/line_handlers.rb', line 17 def self.document_start Handler.new LineParsers::DocumentStart, LineProcessors::DocumentStart end |
.mapping ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/norma43/line_handlers.rb', line 5 def self.mapping { "00" => self.document_start, "88" => self.document_end, "11" => self.account_start, "33" => self.account_end, "22" => self.transaction, "23" => self.additional_item, "24" => self.additional_currency } end |
.transaction ⇒ Object
33 34 35 |
# File 'lib/norma43/line_handlers.rb', line 33 def self.transaction Handler.new LineParsers::Transaction, LineProcessors::Transaction end |