Module: Closeio::Client::Webhook
- Included in:
- Closeio::Client
- Defined in:
- lib/closeio/resources/webhook.rb
Instance Method Summary collapse
- #create_webhook(options = {}) ⇒ Object
- #delete_webhook(id) ⇒ Object
- #find_webhook(id) ⇒ Object
- #list_webhooks ⇒ Object
- #update_webhook(id, options = {}) ⇒ Object
Instance Method Details
#create_webhook(options = {}) ⇒ Object
12 13 14 |
# File 'lib/closeio/resources/webhook.rb', line 12 def create_webhook( = {}) post(webhook_path, ) 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_webhooks ⇒ Object
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, = {}) put(webhook_path(id), ) end |