class Pingdom::TMSRecipe
{“recipes”=>{
"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"=>[] }
}
Public Class Methods
parse(client, response)
click to toggle source
Calls superclass method
Pingdom::Base::parse
# 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
Public Instance Methods
created_at()
click to toggle source
Calls superclass method
# File lib/pingdom/tms_recipe.rb, line 27 def created_at Time.at(super) end
summary()
click to toggle source
# File lib/pingdom/tms_recipe.rb, line 23 def summary @client.tms_summary(id) end