Sha256: 788e6432c9667569905be007325dce44543a47e47aad5751b55be8243281323e

Contents?: true

Size: 508 Bytes

Versions: 3

Compression:

Stored size: 508 Bytes

Contents

require_relative 'client_association_methods_factory'

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

      def new(*)
        fail 'Not supported'
      end

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

      def me
        find('me')
      end

      def all(*)
        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_user_methods_factory.rb
contentful-management-1.10.0 lib/contentful/management/client_user_methods_factory.rb
contentful-management-1.9.0 lib/contentful/management/client_user_methods_factory.rb