Class: Harmony::Service::Utils::Diff

Inherits:
Object
  • Object
show all
Defined in:
lib/harmony/service/utils/diff.rb

Instance Method Summary collapse

Instance Method Details

#new_items(old_value, new_value) ⇒ Object



5
6
7
8
# File 'lib/harmony/service/utils/diff.rb', line 5

def new_items(old_value, new_value)
  diff = HashDiff.diff(old_value, new_value)
  diff.select{|item| item[0] == '+'}.collect{|item| item[2]}
end