Method: Datamappify::Repository::UnitOfWork::PersistentStates::Object#update_values

Defined in:
lib/datamappify/repository/unit_of_work/persistent_states/object.rb

#update_values(entity) ⇒ void

This method returns an undefined value.

Updates all the attribute values according to the entity

Parameters:



29
30
31
32
33
34
# File 'lib/datamappify/repository/unit_of_work/persistent_states/object.rb', line 29

def update_values(entity)
  attributes_for(entity).each do |name, value|
    construct_attribute(name)
    send("#{name}=", value)
  end
end