module Closeio::Client::Webhook
Public Instance Methods
Source
# File lib/closeio/resources/webhook.rb, line 12 def create_webhook(options = {}) post(webhook_path, options) end
Source
# File lib/closeio/resources/webhook.rb, line 20 def delete_webhook(id) delete(webhook_path(id)) end
Source
# File lib/closeio/resources/webhook.rb, line 8 def find_webhook(id) get(webhook_path(id)) end
Source
# File lib/closeio/resources/webhook.rb, line 4 def list_webhooks get(webhook_path) end
Source
# File lib/closeio/resources/webhook.rb, line 16 def update_webhook(id, options = {}) put(webhook_path(id), options) end
Private Instance Methods
Source
# File lib/closeio/resources/webhook.rb, line 26 def webhook_path(id = nil) id ? "webhook/#{id}/" : 'webhook/' end