Sha256: 5b8504b2a4711a490686ae527048430853062da067fcaf9005c9b57f5924a6a4

Contents?: true

Size: 609 Bytes

Versions: 3

Compression:

Stored size: 609 Bytes

Contents

require_relative 'client_association_methods_factory'

module Contentful
  module Management
    # Wrapper for Personal Access Token API for usage from within Client
    # @private
    class ClientPersonalAccessTokenMethodsFactory
      include Contentful::Management::ClientAssociationMethodsFactory

      def new(*)
        fail 'Not supported'
      end

      def all(params = {})
        super(nil, params)
      end

      def find(personal_access_token_id)
        super(nil, personal_access_token_id)
      end

      def create(attributes)
        super(nil, attributes)
      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_personal_access_tokens_methods_factory.rb
contentful-management-1.10.0 lib/contentful/management/client_personal_access_tokens_methods_factory.rb
contentful-management-1.9.0 lib/contentful/management/client_personal_access_tokens_methods_factory.rb