Class: Redisrank::Collection

Inherits:
Array
  • Object
show all
Defined in:
lib/redisrank/collection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Collection

Returns a new instance of Collection.



9
10
11
12
13
# File 'lib/redisrank/collection.rb', line 9

def initialize(options = {})
  @from = options[:from] ||= nil
  @till = options[:till] ||= nil
  @depth = options[:depth] ||= nil
end

Instance Attribute Details

#depthObject

Returns the value of attribute depth.



6
7
8
# File 'lib/redisrank/collection.rb', line 6

def depth
  @depth
end

#fromObject

Returns the value of attribute from.



4
5
6
# File 'lib/redisrank/collection.rb', line 4

def from
  @from
end

#rankObject

Returns the value of attribute rank.



7
8
9
# File 'lib/redisrank/collection.rb', line 7

def rank
  @rank
end

#tillObject

Returns the value of attribute till.



5
6
7
# File 'lib/redisrank/collection.rb', line 5

def till
  @till
end