Class: DogEventer::Url

Inherits:
Scope
  • Object
show all
Defined in:
lib/dogeventer/scope.rb

Instance Attribute Summary

Attributes inherited from Scope

#events

Instance Method Summary collapse

Constructor Details

#initialize(start_time, url) ⇒ Url

Returns a new instance of Url.



30
31
32
33
# File 'lib/dogeventer/scope.rb', line 30

def initialize(start_time, url)
  super start_time
  @url = url
end

Instance Method Details

#pingdom_check(check_name, &block) ⇒ Object



35
36
37
38
39
# File 'lib/dogeventer/scope.rb', line 35

def pingdom_check(check_name, &block)
  p = PingdomCheck.new(check_name, @url, @start_time)
  p.instance_eval &block
  @events += p.events
end