Method: Conflow::Redis::Model#assign_attributes
- Defined in:
- lib/conflow/redis/model.rb
#assign_attributes(**attributes) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Convienience method for assigning multiple fields in model
32 33 34 35 36 |
# File 'lib/conflow/redis/model.rb', line 32 def assign_attributes(**attributes) attributes.each do |attribute, value| send("#{attribute}=", value) end end |