Class: Pingdom::Contact

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

Overview

Bernstein”, “directtwitter”=>false, “id”=>142762, “cellphone”=>“1-510-501-7401”, “paused”=>false, “defaultsmsprovider”=>“clickatell”, “email”=>“[email protected]

Class 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/contact.rb', line 5

def self.parse(client, response)
  super["contacts"].map do |contact|
    new(client, response, contact)
  end
end