Method: Cash::Index::Commands#add

Defined in:
lib/cash/index.rb

#add(object) ⇒ Object



24
25
26
27
28
# File 'lib/cash/index.rb', line 24

def add(object)
  clone = object.shallow_clone
  _, new_attribute_value_pairs = old_and_new_attribute_value_pairs(object)
  add_to_index_with_minimal_network_operations(new_attribute_value_pairs, clone)
end