class Pingdom::Result
{“statusdesclong”=>“OK”, “probeid”=>28, “responsetime”=>221, “statusdesc”=>“OK”, “status”=>“up”, “probedesc”=>“Amsterdam 2, Netherlands”}
Public Class Methods
parse(client, response)
click to toggle source
Calls superclass method
Pingdom::Base::parse
# File lib/pingdom/result.rb, line 5 def self.parse(client, response) results = super Array.wrap(results[:results] || results[:result]).map do |result| new(client, response, result) end end
Public Instance Methods
probe()
click to toggle source
# File lib/pingdom/result.rb, line 15 def probe @client.probes.detect{ |probe| probe.id == probe_id } end