Method: Sequel::Model::InstanceMethods#set
- Defined in:
- lib/sequel/model/base.rb
#set(hash) ⇒ Object
Updates the instance with the supplied values with support for virtual attributes, raising an exception if a value is used that doesn’t have a setter method (or ignoring it if strict_param_setting = false). Does not save the record.
artist.set(name: 'Jim')
artist.name # => 'Jim'
1573 1574 1575 |
# File 'lib/sequel/model/base.rb', line 1573 def set(hash) set_restricted(hash, :default) end |