Sha256: df86b95e0560219fdca97d80f9669ae663235ce361a220b5e7d1e4ff7fbae815

Contents?: true

Size: 846 Bytes

Versions: 36

Compression:

Stored size: 846 Bytes

Contents

require_relative 'resource_requester'

module Contentful
  module Management
    # Wrapper for webhook call detail manipulation for a specific webhook.
    # @private
    class WebhookWebhookCallMethodsFactory
      attr_reader :webhook

      # @private
      def initialize(webhook)
        @webhook = webhook
      end

      # Gets all webhook call details for a specific webhook.
      #
      # @return [Contentful::Management::Array<Contentful::Management::WebhookCall>]
      def all(_params = {})
        WebhookCall.all(webhook.client, webhook.space.id, webhook.id)
      end

      # Gets a webhook call detail for a specific webhook by ID.
      #
      # @return [Contentful::Management::WebhookCall]
      def find(call_id)
        WebhookCall.find(webhook.client, webhook.space.id, webhook.id, call_id)
      end
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
contentful-management-3.8.0 lib/contentful/management/webhook_webhook_call_methods_factory.rb
contentful-management-3.7.0 lib/contentful/management/webhook_webhook_call_methods_factory.rb
contentful-management-3.6.0 lib/contentful/management/webhook_webhook_call_methods_factory.rb
contentful-management-3.5.0 lib/contentful/management/webhook_webhook_call_methods_factory.rb
contentful-management-3.4.0 lib/contentful/management/webhook_webhook_call_methods_factory.rb
contentful-management-3.3.0 lib/contentful/management/webhook_webhook_call_methods_factory.rb
contentful-management-3.2.0 lib/contentful/management/webhook_webhook_call_methods_factory.rb
contentful-management-3.1.0 lib/contentful/management/webhook_webhook_call_methods_factory.rb
contentful-management-3.0.0 lib/contentful/management/webhook_webhook_call_methods_factory.rb
contentful-management-2.13.1 lib/contentful/management/webhook_webhook_call_methods_factory.rb
contentful-management-2.13.0 lib/contentful/management/webhook_webhook_call_methods_factory.rb
contentful-management-2.12.1 lib/contentful/management/webhook_webhook_call_methods_factory.rb
contentful-management-2.12.0 lib/contentful/management/webhook_webhook_call_methods_factory.rb
contentful-management-2.11.0 lib/contentful/management/webhook_webhook_call_methods_factory.rb
contentful-management-2.10.0 lib/contentful/management/webhook_webhook_call_methods_factory.rb
contentful-management-2.9.1 lib/contentful/management/webhook_webhook_call_methods_factory.rb
contentful-management-2.9.0 lib/contentful/management/webhook_webhook_call_methods_factory.rb
contentful-management-2.8.2 lib/contentful/management/webhook_webhook_call_methods_factory.rb
contentful-management-2.8.1 lib/contentful/management/webhook_webhook_call_methods_factory.rb
contentful-management-2.8.0 lib/contentful/management/webhook_webhook_call_methods_factory.rb