Sha256: 72da66ed895052124a20164d9b27097fd21dbdad5e46d9ec19786f36ebc00ee8

Contents?: true

Size: 554 Bytes

Versions: 2

Compression:

Stored size: 554 Bytes

Contents

# frozen_string_literal: true

require_relative 'client_association_methods_factory'

module Contentful
  module Management
    # Wrapper for PreviewApiKey API for usage from within Client
    # @private
    class ClientPreviewApiKeyMethodsFactory
      include Contentful::Management::ClientAssociationMethodsFactory

      def new(*)
        fail 'Not supported'
      end

      def find(resource_id)
        associated_class.find(client, @space_id, resource_id)
      end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
contentful-management-3.10.0 lib/contentful/management/client_preview_api_key_methods_factory.rb
contentful-management-3.9.0 lib/contentful/management/client_preview_api_key_methods_factory.rb