Class: DogEventer::Url
Instance Attribute Summary
Attributes inherited from Scope
Instance Method Summary collapse
-
#initialize(start_time, url) ⇒ Url
constructor
A new instance of Url.
- #pingdom_check(check_name, &block) ⇒ Object
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 |