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:



30
31
32
# 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

.createObject

Not supported



47
48
49
# File 'lib/contentful/management/webhook_call.rb', line 47

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:



42
43
44
# 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

Instance Method Details

#destroyObject

Not supported



69
70
71
# File 'lib/contentful/management/webhook_call.rb', line 69

def destroy
  fail 'Not supported'
end

#updateObject

Not supported



74
75
76
# File 'lib/contentful/management/webhook_call.rb', line 74

def update(*)
  fail 'Not supported'
end