Class: Contentful::Management::WebhookCall

Inherits:
Object
  • Object
show all
Includes:
Resource, Resource::Refresher, Resource::SystemProperties
Defined in:
lib/contentful/management/webhook_call.rb

Overview

Resource class for WebhookCall.

See Also:

  • https://www.contentful.com/developers/docs/references/content-management-api/#/reference/webhook-calls

Instance Attribute Summary

Attributes included from Resource::SystemProperties

#sys

Attributes included from Resource

#client, #properties, #raw_object, #request

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Resource::Refresher

#reload

Methods included from Resource

#array?, #default_locale, #environment_id, #fields, #nested_locale_fields?, #resource?, #save, #sys

Class Method Details

.all(client, space_id, webhook_id) ⇒ Contentful::Management::Array<Contentful::Management::WebhookCall>

Gets all webhook call details for a webhook.

Parameters:

Returns:



28
29
30
# 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

.createObject

Not supported



45
46
47
# File 'lib/contentful/management/webhook_call.rb', line 45

def self.create(*)
  fail 'Not supported'
end

.find(client, space_id, webhook_id, call_id) ⇒ Contentful::Management::WebhookCall

Gets a webhook’s call details by ID

Parameters:

Returns:



40
41
42
# 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

Instance Method Details

#destroyObject

Not supported



67
68
69
# File 'lib/contentful/management/webhook_call.rb', line 67

def destroy
  fail 'Not supported'
end

#updateObject

Not supported



72
73
74
# File 'lib/contentful/management/webhook_call.rb', line 72

def update(*)
  fail 'Not supported'
end