Module: Closeio::Client::Webhook

Included in:
Closeio::Client
Defined in:
lib/closeio/resources/webhook.rb

Instance Method Summary collapse

Instance Method Details

#create_webhook(options = {}) ⇒ Object



12
13
14
# File 'lib/closeio/resources/webhook.rb', line 12

def create_webhook(options = {})
  post(webhook_path, options)
end

#delete_webhook(id) ⇒ Object



20
21
22
# File 'lib/closeio/resources/webhook.rb', line 20

def delete_webhook(id)
  delete(webhook_path(id))
end

#find_webhook(id) ⇒ Object



8
9
10
# File 'lib/closeio/resources/webhook.rb', line 8

def find_webhook(id)
  get(webhook_path(id))
end

#list_webhooksObject



4
5
6
# File 'lib/closeio/resources/webhook.rb', line 4

def list_webhooks
  get(webhook_path)
end

#update_webhook(id, options = {}) ⇒ Object



16
17
18
# File 'lib/closeio/resources/webhook.rb', line 16

def update_webhook(id, options = {})
  put(webhook_path(id), options)
end