class Contentful::Management::WebhookWebhookCallMethodsFactory
Wrapper for webhook call detail manipulation for a specific webhook. @private
Attributes
webhook[R]
Public Class Methods
new(webhook)
click to toggle source
@private
# File lib/contentful/management/webhook_webhook_call_methods_factory.rb, line 11 def initialize(webhook) @webhook = webhook end
Public Instance Methods
all(_params = {})
click to toggle source
Gets all webhook call details for a specific webhook.
@return [Contentful::Management::Array<Contentful::Management::WebhookCall>]
# File lib/contentful/management/webhook_webhook_call_methods_factory.rb, line 18 def all(_params = {}) WebhookCall.all(webhook.client, webhook.space.id, webhook.id) end
find(call_id)
click to toggle source
Gets a webhook call detail for a specific webhook by ID.
@return [Contentful::Management::WebhookCall]
# File lib/contentful/management/webhook_webhook_call_methods_factory.rb, line 25 def find(call_id) WebhookCall.find(webhook.client, webhook.space.id, webhook.id, call_id) end