Class: Redpear::Schema::Score
- Defined in:
- lib/redpear/schema/score.rb
Instance Attribute Summary
Attributes inherited from Column
Instance Method Summary collapse
-
#for ⇒ Redpear::Store::Set
The set holding the IDs for ‘record’s` index.
-
#members ⇒ Redpear::Store::SortedSet
The sorted set holding the pairs.
Methods inherited from Column
#encode_value, #initialize, #name, #readable?, #type_cast, #writable?
Constructor Details
This class inherits a constructor from Redpear::Schema::Column
Instance Method Details
#for ⇒ Redpear::Store::Set
Returns the set holding the IDs for ‘record’s` index.
4 5 6 |
# File 'lib/redpear/schema/score.rb', line 4 def for(*) members end |
#members ⇒ Redpear::Store::SortedSet
Returns the sorted set holding the pairs.
9 10 11 |
# File 'lib/redpear/schema/score.rb', line 9 def members(*) @members ||= Redpear::Store::SortedSet.new nested_key(name), model.connection end |