Class: Pingdom::TMSRecipe
Overview
"12345"=>{
"name"=>"Google", "status"=>"SUCCESSFUL", kitchen=>{"id"=>1,"name"=>"us-east",
"ingredients"=>"Go to URL http://google.com\nURL should be http://google.com",
"active"=>"YES", "created_at"=>1298102416, "interval"=>10, "notifyvia"=>[],
"send_daily_report"=>"NO", "use_legacy_notifications"=>false,
"sendnotificationwhendown"=>1, "notifyagainevery"=>0, "contacts"=>[]
}
}
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
12 13 14 15 16 17 |
# File 'lib/pingdom/tms_recipe.rb', line 12 def self.parse(client, response) super["recipes"].map do |id, recipe| recipe["id"] = id new(client, response, recipe) end end |
Instance Method Details
#created_at ⇒ Object
27 28 29 |
# File 'lib/pingdom/tms_recipe.rb', line 27 def created_at Time.at(super) end |
#summary ⇒ Object
23 24 25 |
# File 'lib/pingdom/tms_recipe.rb', line 23 def summary @client.tms_summary(id) end |