class Contentful::Management::WebhookCall

Resource class for WebhookCall. @see _ www.contentful.com/developers/docs/references/content-management-api/#/reference/webhook-calls

Public Class Methods

all(client, space_id, webhook_id) click to toggle source

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>]

# File lib/contentful/management/webhook_call.rb, line 28
def self.all(client, space_id, webhook_id)
  ClientWebhookCallMethodsFactory.new(client, space_id, webhook_id).all
end
build_endpoint(endpoint_options) click to toggle source

@private

# File lib/contentful/management/webhook_call.rb, line 55
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
create(*) click to toggle source

Not supported

# File lib/contentful/management/webhook_call.rb, line 45
def self.create(*)
  fail 'Not supported'
end
endpoint() click to toggle source

@private

# File lib/contentful/management/webhook_call.rb, line 50
def self.endpoint
  'webhooks'
end
find(client, space_id, webhook_id, call_id) click to toggle source

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]

# File lib/contentful/management/webhook_call.rb, line 40
def self.find(client, space_id, webhook_id, call_id)
  ClientWebhookCallMethodsFactory.new(client, space_id, webhook_id).find(call_id)
end

Public Instance Methods

destroy() click to toggle source

Not supported

# File lib/contentful/management/webhook_call.rb, line 67
def destroy
  fail 'Not supported'
end
update(*) click to toggle source

Not supported

# File lib/contentful/management/webhook_call.rb, line 72
def update(*)
  fail 'Not supported'
end