class EdifactConverter::Result

Constants

ATTRIBUTES

Public Class Methods

new(options) click to toggle source
# File lib/edifact_converter/result.rb, line 16
def initialize(options)
  options.each do |key, value|
    if ATTRIBUTES.member? key.to_sym
      self.send "#{key}=", value
    end
  end
end

Public Instance Methods

properties() click to toggle source
# File lib/edifact_converter/result.rb, line 24
def properties
  @properties ||= Hash.new do |hash,key|
    case key
    when :errors
      hash[key] = []
    when :warnings
      hash[key] = []
    else
      nil
    end
  end
end