class Contentful::Management::WebhookCall
Resource
class for WebhookCall
. @see _ www.contentful.com/developers/docs/references/content-management-api/#/reference/webhook-calls
Public Class Methods
Source
# File lib/contentful/management/webhook_call.rb, line 30 def self.all(client, space_id, webhook_id) ClientWebhookCallMethodsFactory.new(client, space_id, webhook_id).all end
Gets all webhook call details for a webhook.
@param [Contentful::Management::Client] client @param [String] space_id @param [String] webhook_id
@return [Contentful::Management::Array<Contentful::Management::WebhookCall>]
Source
# File lib/contentful/management/webhook_call.rb, line 57 def self.build_endpoint(endpoint_options) space_id = endpoint_options.fetch(:space_id) webhook_id = endpoint_options.fetch(:webhook_id) call_id = endpoint_options.fetch(:call_id, nil) endpoint = "spaces/#{space_id}/webhooks/#{webhook_id}/calls" endpoint = "#{endpoint}/#{call_id}" unless call_id.nil? endpoint end
@private
Source
# File lib/contentful/management/webhook_call.rb, line 47 def self.create(*) fail 'Not supported' end
Not supported
Source
# File lib/contentful/management/webhook_call.rb, line 52 def self.endpoint 'webhooks' end
@private
Source
# File lib/contentful/management/webhook_call.rb, line 42 def self.find(client, space_id, webhook_id, call_id) ClientWebhookCallMethodsFactory.new(client, space_id, webhook_id).find(call_id) end
Gets a webhook’s call details by ID
@param [Contentful::Management::Client] client @param [String] space_id @param [String] webhook_id @param [String] call_id
@return [Contentful::Management::WebhookCall]
Public Instance Methods
Source
# File lib/contentful/management/webhook_call.rb, line 69 def destroy fail 'Not supported' end
Not supported
Source
# File lib/contentful/management/webhook_call.rb, line 74 def update(*) fail 'Not supported' end
Not supported