Method: Ork::Model#update_attributes

Defined in:
lib/ork/model.rb

#update_attributes(atts) ⇒ Object

Write the dictionary of key-value pairs to the model.



28
29
30
31
# File 'lib/ork/model.rb', line 28

def update_attributes(atts)
  atts.delete('_type')
  atts.each { |att, val| send(:"#{att}=", val) }
end