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.
43 44 45 |
# File 'lib/contentful/management/webhook.rb', line 43 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.
54 55 56 |
# File 'lib/contentful/management/webhook.rb', line 54 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.
63 64 65 |
# File 'lib/contentful/management/webhook.rb', line 63 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.
72 73 74 |
# File 'lib/contentful/management/webhook.rb', line 72 def webhook_health WebhookWebhookHealthMethodsFactory.new(self) end |