Class: Contentful::Management::Webhook
- Inherits:
-
Object
- Object
- Contentful::Management::Webhook
- Includes:
- Resource, Resource::Refresher, Resource::SystemProperties
- Defined in:
- lib/contentful/management/webhook.rb
Overview
Resource class for Webhook.
Instance Attribute Summary
Attributes included from Resource::SystemProperties
Attributes included from Resource
#client, #properties, #raw_object, #request
Class Method Summary collapse
-
.create(client, space_id, attributes = {}) ⇒ Contentful::Management::Webhook
Creates a webhook.
-
.find(client, space_id, webhook_id) ⇒ Contentful::Management::Webhook
Finds a webhook by ID.
Instance Method Summary collapse
-
#webhook_calls ⇒ Contentful::Management::WebhookWebhookCallMethodsFactory
Allows manipulation of webhook call details in context of the current webhook Allows listing all webhook call details for the webhook and finding one by ID.
-
#webhook_health ⇒ Contentful::Management::WebhookWebhookHealthMethodsFactory
Allows manipulation of webhook health details in context of the current webhook Allows listing webhook health details for the webhook.
Methods included from Resource::Refresher
Methods included from Resource
#array?, #default_locale, #destroy, #environment_id, #fields, #nested_locale_fields?, #resource?, #save, #sys, #update
Class Method Details
.create(client, space_id, attributes = {}) ⇒ Contentful::Management::Webhook
Creates a webhook.
41 42 43 |
# File 'lib/contentful/management/webhook.rb', line 41 def self.create(client, space_id, attributes = {}) super(client, space_id, nil, attributes) end |
.find(client, space_id, webhook_id) ⇒ Contentful::Management::Webhook
Finds a webhook by ID.
52 53 54 |
# File 'lib/contentful/management/webhook.rb', line 52 def self.find(client, space_id, webhook_id) super(client, space_id, nil, webhook_id) end |
Instance Method Details
#webhook_calls ⇒ Contentful::Management::WebhookWebhookCallMethodsFactory
Allows manipulation of webhook call details in context of the current webhook Allows listing all webhook call details for the webhook and finding one by ID.
61 62 63 |
# File 'lib/contentful/management/webhook.rb', line 61 def webhook_calls WebhookWebhookCallMethodsFactory.new(self) end |
#webhook_health ⇒ Contentful::Management::WebhookWebhookHealthMethodsFactory
Allows manipulation of webhook health details in context of the current webhook Allows listing webhook health details for the webhook.
70 71 72 |
# File 'lib/contentful/management/webhook.rb', line 70 def webhook_health WebhookWebhookHealthMethodsFactory.new(self) end |