Sha256: a2e3bd22d116a456d74470fbc3e496acc8dbf77e5adb02e25b0b72332e671d2f

Contents?: true

Size: 597 Bytes

Versions: 3

Compression:

Stored size: 597 Bytes

Contents

require_relative 'client_association_methods_factory'

module Contentful
  module Management
    # Wrapper for Webhook Health API for usage from within Client
    # @private
    class ClientWebhookHealthMethodsFactory
      include Contentful::Management::ClientAssociationMethodsFactory

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

      def find(space_id, webhook_id)
        @resource_requester.find(
          space_id: space_id,
          webhook_id: webhook_id
        )
      end

      def new(*)
        fail 'Not supported'
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
contentful-management-1.10.1 lib/contentful/management/client_webhook_health_methods_factory.rb
contentful-management-1.10.0 lib/contentful/management/client_webhook_health_methods_factory.rb
contentful-management-1.9.0 lib/contentful/management/client_webhook_health_methods_factory.rb