Class: ReReplay::DelayMonitor
- Inherits:
-
Object
- Object
- ReReplay::DelayMonitor
- Defined in:
- lib/rereplay/monitors/delay_monitor.rb
Instance Attribute Summary collapse
-
#results ⇒ Object
readonly
Returns the value of attribute results.
Instance Method Summary collapse
-
#initialize ⇒ DelayMonitor
constructor
A new instance of DelayMonitor.
- #start(request) ⇒ Object
Constructor Details
#initialize ⇒ DelayMonitor
Returns a new instance of DelayMonitor.
5 6 7 |
# File 'lib/rereplay/monitors/delay_monitor.rb', line 5 def initialize @results = [] end |
Instance Attribute Details
#results ⇒ Object (readonly)
Returns the value of attribute results.
4 5 6 |
# File 'lib/rereplay/monitors/delay_monitor.rb', line 4 def results @results end |
Instance Method Details
#start(request) ⇒ Object
9 10 11 |
# File 'lib/rereplay/monitors/delay_monitor.rb', line 9 def start(request) @results[request.index] = [request.url, request.actual_start - request.scheduled_start] end |