Class: Pingdom::Probe
Overview
“name”=>“Manchester, UK”, “country”=>“United Kingdom”, “countryiso”=>“GB”, “id”=>46, “ip”=>“212.84.74.156”, “hostname”=>“s424.pingdom.com”, “active”=>true
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
attributes, check_error!, #id, #initialize, #inspect, #method_missing, #respond_to?, #respond_to_missing?
Constructor Details
This class inherits a constructor from Pingdom::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Pingdom::Base
Class Method Details
.parse(client, response) ⇒ Object
5 6 7 8 9 |
# File 'lib/pingdom/probe.rb', line 5 def self.parse(client, response) super["probes"].map do |probe| new(client, response, probe) end end |
Instance Method Details
#test!(options) ⇒ Object
13 14 15 |
# File 'lib/pingdom/probe.rb', line 13 def test!() @client.test!(.merge(probeid: id)) end |