Class: ReReplay::DelayMonitor

Inherits:
Object
  • Object
show all
Defined in:
lib/rereplay/monitors/delay_monitor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDelayMonitor

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

#resultsObject (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