Module: CassandraMapper::Identity::ClassMethods
- Defined in:
- lib/cassandra_mapper/identity.rb
Instance Method Summary collapse
Instance Method Details
#default_key_name ⇒ Object
8 9 10 |
# File 'lib/cassandra_mapper/identity.rb', line 8 def default_key_name :key end |
#key(attribute = nil) ⇒ Object
3 4 5 6 |
# File 'lib/cassandra_mapper/identity.rb', line 3 def key(attribute = nil) @cassandra_mapper_key = attribute if attribute @cassandra_mapper_key ||= default_key_name end |