Class: Redistat::Collection
- Inherits:
-
Array
- Object
- Array
- Redistat::Collection
- Defined in:
- lib/redistat/collection.rb
Instance Attribute Summary collapse
-
#depth ⇒ Object
Returns the value of attribute depth.
-
#from ⇒ Object
Returns the value of attribute from.
-
#till ⇒ Object
Returns the value of attribute till.
-
#total ⇒ Object
Returns the value of attribute total.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Collection
constructor
A new instance of Collection.
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( = {}) @from = [:from] ||= nil @till = [:till] ||= nil @depth = [:depth] ||= nil end |
Instance Attribute Details
#depth ⇒ Object
Returns the value of attribute depth.
6 7 8 |
# File 'lib/redistat/collection.rb', line 6 def depth @depth end |
#from ⇒ Object
Returns the value of attribute from.
4 5 6 |
# File 'lib/redistat/collection.rb', line 4 def from @from end |
#till ⇒ Object
Returns the value of attribute till.
5 6 7 |
# File 'lib/redistat/collection.rb', line 5 def till @till end |
#total ⇒ Object
Returns the value of attribute total.
7 8 9 |
# File 'lib/redistat/collection.rb', line 7 def total @total end |