Class: Redistat::Result
- Inherits:
-
HashWithIndifferentAccess
- Object
- HashWithIndifferentAccess
- Redistat::Result
- Defined in:
- lib/redistat/result.rb
Instance Attribute Summary collapse
-
#from ⇒ Object
(also: #date)
Returns the value of attribute from.
-
#till ⇒ Object
Returns the value of attribute till.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(options = {}) ⇒ Result
Returns a new instance of Result.
12 13 14 15 |
# File 'lib/redistat/result.rb', line 12 def initialize( = {}) @from = [:from] ||= nil @till = [:till] ||= nil end |
Instance Attribute Details
#from ⇒ Object Also known as: date
Returns the value of attribute from.
6 7 8 |
# File 'lib/redistat/result.rb', line 6 def from @from end |
#till ⇒ Object
Returns the value of attribute till.
7 8 9 |
# File 'lib/redistat/result.rb', line 7 def till @till end |