Method: Sequel::Model::InstanceMethods#id
- Defined in:
- lib/sequel/model/base.rb
#id ⇒ Object
Returns value for the :id attribute, even if the primary key is not id. To get the primary key value, use pk.
Artist[1].id # => 1
1344 1345 1346 |
# File 'lib/sequel/model/base.rb', line 1344 def id @values[:id] end |