Class: Redpear::Schema::Score

Inherits:
Index show all
Defined in:
lib/redpear/schema/score.rb

Instance Attribute Summary

Attributes inherited from Column

#model, #type

Instance Method Summary collapse

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

#forRedpear::Store::Set

Returns the set holding the IDs for ‘record’s` index.

Returns:



4
5
6
# File 'lib/redpear/schema/score.rb', line 4

def for(*)
  members
end

#membersRedpear::Store::SortedSet

Returns the sorted set holding the pairs.

Returns:



9
10
11
# File 'lib/redpear/schema/score.rb', line 9

def members(*)
  @members ||= Redpear::Store::SortedSet.new nested_key(name), model.connection
end