Module: Norma43::LineHandlers

Defined in:
lib/norma43/line_handlers.rb

Defined Under Namespace

Classes: Handler

Class Method Summary collapse

Class Method Details

.account_endObject



29
30
31
# File 'lib/norma43/line_handlers.rb', line 29

def self.
  Handler.new LineParsers::AccountEnd, LineProcessors::AccountEnd
end

.account_startObject



25
26
27
# File 'lib/norma43/line_handlers.rb', line 25

def self.
  Handler.new LineParsers::AccountStart, LineProcessors::AccountStart
end

.additional_currencyObject



41
42
43
# File 'lib/norma43/line_handlers.rb', line 41

def self.additional_currency
  Handler.new LineParsers::AdditionalCurrency, LineProcessors::AdditionalCurrency
end

.additional_itemObject



37
38
39
# File 'lib/norma43/line_handlers.rb', line 37

def self.additional_item
  Handler.new LineParsers::AdditionalItem, LineProcessors::AdditionalItem
end

.document_endObject



21
22
23
# File 'lib/norma43/line_handlers.rb', line 21

def self.document_end
  Handler.new LineParsers::DocumentEnd, LineProcessors::DocumentEnd
end

.document_startObject



17
18
19
# File 'lib/norma43/line_handlers.rb', line 17

def self.document_start
  Handler.new LineParsers::DocumentStart, LineProcessors::DocumentStart
end

.mappingObject



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.,
    "33" => self.,
    "22" => self.transaction,
    "23" => self.additional_item,
    "24" => self.additional_currency
  }
end

.transactionObject



33
34
35
# File 'lib/norma43/line_handlers.rb', line 33

def self.transaction
  Handler.new LineParsers::Transaction, LineProcessors::Transaction
end