Method: Tarantool::BaseRecord::InstanceMethods#id
- Defined in:
- lib/tarantool/base_record.rb
#id ⇒ Object
322 323 324 325 326 |
# File 'lib/tarantool/base_record.rb', line 322 def id (primary = self.class.primary_index).size == 1 ? @attributes[primary[0]] : @attributes.values_at(*primary) end |