Method: Cash::Index::Commands#update

Defined in:
lib/cash/index.rb

#update(object) ⇒ Object



30
31
32
33
34
# File 'lib/cash/index.rb', line 30

def update(object)
  clone = object.shallow_clone
  old_attribute_value_pairs, new_attribute_value_pairs = old_and_new_attribute_value_pairs(object)
  update_index_with_minimal_network_operations(old_attribute_value_pairs, new_attribute_value_pairs, clone)
end