lib/differential/calculator/item.rb in differential-1.0.4 vs lib/differential/calculator/item.rb in differential-1.0.5

- old
+ new

@@ -23,10 +23,10 @@ def initialize(id) raise ArgumentError, 'id is required' unless id @a_records = [] @b_records = [] - @id = id + @id = id.is_a?(::Differential::Parser::Id) ? id : ::Differential::Parser::Id.new(id) end def add(record, side) raise ArgumentError, 'record is required' unless record raise ArgumentError, 'side is required' unless side