app/view_models/view_model.rb
# Internal: Update this instance's attribute instance variables with
# new values.
#
# attributes - A Symbol-keyed Hash of new attribute values.
#
# Returns self.
Update this instance's attribute instance variables with
new values.

A Symbol-keyed Hash of new attribute values.

Returns self.
Update this instance ' s attribute instance variables with new values . A Symbol - keyed Hash of new attribute values . Returns self .
def update(attributes)
    (@attributes ||= {}).merge! attributes
    (self.class.attr_initializables & attributes.keys).each do |name|
      instance_variable_set :"@#{name}", attributes[name]
    end
    self
  end
def update ( attributes ) ( @attributes ||= { } ) . merge! attributes ( self . class . attr_initializables & attributes . keys ) . each do | name | instance_variable_set :" @ #{ name } " , attributes [ name ] end self end
Internal: Update this instance's attribute instance variables with
new values.
Internal : Update this instance ' s attribute instance variables with new values .
attributes
<not_specific>