# File lib/fog/rackspace/requests/auto_scale/get_webhook.rb, line 15 def get_webhook(group_id, policy_id, webhook_id) group = self.data[:autoscale_groups][group_id] if group.nil? raise Fog::Rackspace::AutoScale::NotFound end policy = group['scalingPolicies'].find { |p| p["id"] == policy_id } if policy.nil? raise Fog::Rackspace::AutoScale::NotFound end webhook = policy['webhooks'].find { |w| w['id'] == webhook_id } if webhook.nil? raise Fog::Rackspace::AutoScale::NotFound end response(:body => {'webhook' => webhook}) end