Sha256: 031de77f93693ddb1114c7525f73c789b9707ef923922b7e73dade91e96c612c

Contents?: true

Size: 641 Bytes

Versions: 36

Compression:

Stored size: 641 Bytes

Contents

require_relative 'resource_requester'

module Contentful
  module Management
    # Wrapper for webhook health information for a specific webhook.
    # @private
    class WebhookWebhookHealthMethodsFactory
      attr_reader :webhook

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

      # Not supported
      def all(*)
        fail 'Not supported'
      end

      # Gets a webhook call detail for a specific webhook by ID.
      #
      # @return [Contentful::Management::WebhookCall]
      def find
        WebhookHealth.find(webhook.client, webhook.space.id, webhook.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_health_methods_factory.rb
contentful-management-3.7.0 lib/contentful/management/webhook_webhook_health_methods_factory.rb
contentful-management-3.6.0 lib/contentful/management/webhook_webhook_health_methods_factory.rb
contentful-management-3.5.0 lib/contentful/management/webhook_webhook_health_methods_factory.rb
contentful-management-3.4.0 lib/contentful/management/webhook_webhook_health_methods_factory.rb
contentful-management-3.3.0 lib/contentful/management/webhook_webhook_health_methods_factory.rb
contentful-management-3.2.0 lib/contentful/management/webhook_webhook_health_methods_factory.rb
contentful-management-3.1.0 lib/contentful/management/webhook_webhook_health_methods_factory.rb
contentful-management-3.0.0 lib/contentful/management/webhook_webhook_health_methods_factory.rb
contentful-management-2.13.1 lib/contentful/management/webhook_webhook_health_methods_factory.rb
contentful-management-2.13.0 lib/contentful/management/webhook_webhook_health_methods_factory.rb
contentful-management-2.12.1 lib/contentful/management/webhook_webhook_health_methods_factory.rb
contentful-management-2.12.0 lib/contentful/management/webhook_webhook_health_methods_factory.rb
contentful-management-2.11.0 lib/contentful/management/webhook_webhook_health_methods_factory.rb
contentful-management-2.10.0 lib/contentful/management/webhook_webhook_health_methods_factory.rb
contentful-management-2.9.1 lib/contentful/management/webhook_webhook_health_methods_factory.rb
contentful-management-2.9.0 lib/contentful/management/webhook_webhook_health_methods_factory.rb
contentful-management-2.8.2 lib/contentful/management/webhook_webhook_health_methods_factory.rb
contentful-management-2.8.1 lib/contentful/management/webhook_webhook_health_methods_factory.rb
contentful-management-2.8.0 lib/contentful/management/webhook_webhook_health_methods_factory.rb