Module: CassandraObject::Identity::Key
- Defined in:
- lib/cassandra_object/identity/key.rb
Overview
An “interface” that keys need to implement
You don’t have to include this. But, there’s no reason I can think of not to.
Instance Method Summary collapse
-
#to_param ⇒ String
to_param should return a nice-readable representation of the key suitable to chuck into URLs.
-
#to_s ⇒ String
to_s should return the bytes which will be written to cassandra both as keys and values for associations.
Instance Method Details
#to_param ⇒ String
to_param should return a nice-readable representation of the key suitable to chuck into URLs
11 |
# File 'lib/cassandra_object/identity/key.rb', line 11 def to_param; end |
#to_s ⇒ String
to_s should return the bytes which will be written to cassandra both as keys and values for associations.
16 |
# File 'lib/cassandra_object/identity/key.rb', line 16 def to_s; end |