Method: Sequel::Model::InstanceMethods#values
- Defined in:
- lib/sequel/model/base.rb
#values ⇒ Object (readonly) Also known as: to_hash, _insert_values
The hash of attribute values. Keys are symbols with the names of the underlying database columns.
Artist.new(:name=>'Bob').values # => {:name=>'Bob'}
Artist[1].values # => {:id=>1, :name=>'Jim', ...}
1141 1142 1143 |
# File 'lib/sequel/model/base.rb', line 1141 def values @values end |