Class: Redistat::Collection

Inherits:
Array
  • Object
show all
Defined in:
lib/redistat/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/redistat/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/redistat/collection.rb', line 6

def depth
  @depth
end

#fromObject

Returns the value of attribute from.



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

def from
  @from
end

#tillObject

Returns the value of attribute till.



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

def till
  @till
end

#totalObject

Returns the value of attribute total.



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

def total
  @total
end