Class: Pingdom::Probe

Inherits:
Base
  • Object
show all
Defined in:
lib/pingdom/probe.rb

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?

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



6
7
8
9
10
# File 'lib/pingdom/probe.rb', line 6

def self.parse(client, response)
  super[:probes].map do |probe|
    new(client, response, probe)
  end
end

Instance Method Details

#test!(options) ⇒ Object



14
15
16
# File 'lib/pingdom/probe.rb', line 14

def test!(options)
  @client.test!(options.merge(:probeid => id))
end