class EdifactConverter::EDI2XML11::UNHHandler

Attributes

elements[RW]
values[RW]

Public Class Methods

new() click to toggle source
# File lib/edifact_converter/edi2xml11/properties_handler.rb, line 45
def initialize
  clear
end

Public Instance Methods

clear() click to toggle source
# File lib/edifact_converter/edi2xml11/properties_handler.rb, line 49
def clear
  self.elements = 0
  self.values = 0
end
startElement() click to toggle source
# File lib/edifact_converter/edi2xml11/properties_handler.rb, line 54
def startElement
  self.elements += 1
  self.values = 0
end
value(value) click to toggle source
# File lib/edifact_converter/edi2xml11/properties_handler.rb, line 59
def value(value)
  self.values += 1
  case
  when elements == 2 && values == 1
    locator.properties[:type] = value
    #locator.settings = EdifactConverter::Configuration.rules[locator.properties[:type]]
  when elements == 2 && values == 5
    locator.properties[:version] = value
  end
end