class EdifactConverter::Difference
Constants
- ATTRIBUTES
Public Class Methods
new(options)
click to toggle source
# File lib/edifact_converter/difference.rb, line 12 def initialize(options) options.fetch(:type) { |key| options[key] = :errors } options.each do |name, value| if ATTRIBUTES.include? name send "#{name}=", value end end end
Public Instance Methods
eql?(diff)
click to toggle source
# File lib/edifact_converter/difference.rb, line 21 def eql?(diff) return false unless diff.kind == kind if kind == :unt diff.source == source && diff.facit == facit else diff.source.name == source.name && diff.facit.name == facit.name end end
to_s()
click to toggle source
# File lib/edifact_converter/difference.rb, line 30 def to_s "#{source.path} afviger fra #{facit.path} ved at #{kind} af typen #{type} og meddelelsen #{message}" end