Class: Redistat::Result

Inherits:
HashWithIndifferentAccess
  • Object
show all
Defined in:
lib/redistat/result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Result

Returns a new instance of Result.



12
13
14
15
# File 'lib/redistat/result.rb', line 12

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

Instance Attribute Details

#fromObject Also known as: date

Returns the value of attribute from.



6
7
8
# File 'lib/redistat/result.rb', line 6

def from
  @from
end

#tillObject

Returns the value of attribute till.



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

def till
  @till
end