Module: Tarantool::Model::Settings
- Extended by:
- ActiveSupport::Concern
- Included in:
- Tarantool::Model
- Defined in:
- tarantool-model/lib/tarantool/model/settings.rb
Overview
Storage, space name and primary key of a model class, inherited by subclasses.
Instance Method Summary collapse
Instance Method Details
#to_key ⇒ Object
56 57 58 |
# File 'tarantool-model/lib/tarantool/model/settings.rb', line 56 def to_key self.class.primary_key_names.map { |name| public_send(name) } if persisted? end |