Class: Unleash::MetricsReporter
- Inherits:
-
Object
- Object
- Unleash::MetricsReporter
- Defined in:
- lib/unleash/metrics_reporter.rb
Constant Summary collapse
- LONGEST_WITHOUT_A_REPORT =
600
Instance Attribute Summary collapse
-
#last_time ⇒ Object
Returns the value of attribute last_time.
Instance Method Summary collapse
- #generate_report ⇒ Object
-
#initialize ⇒ MetricsReporter
constructor
A new instance of MetricsReporter.
- #post ⇒ Object
Constructor Details
#initialize ⇒ MetricsReporter
Returns a new instance of MetricsReporter.
12 13 14 |
# File 'lib/unleash/metrics_reporter.rb', line 12 def initialize self.last_time = Time.now end |
Instance Attribute Details
#last_time ⇒ Object
Returns the value of attribute last_time.
10 11 12 |
# File 'lib/unleash/metrics_reporter.rb', line 10 def last_time @last_time end |