Sha256: fa2146fa754b989caa333fe3772e79dfde908e05262e36618e082b96d1fa7a99

Contents?: true

Size: 479 Bytes

Versions: 7

Compression:

Stored size: 479 Bytes

Contents

require_relative 'space_association_methods_factory'

module Contentful
  module Management
    # Wrapper for User API for usage from within Space
    # @private
    class SpaceUserMethodsFactory
      attr_reader :space

      def initialize(space)
        @space = space
      end

      def find(id)
        User.find(space.client, space.id, nil, id)
      end

      def all(params = {})
        User.all(space.client, space.id, nil, params, nil)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
contentful-management-3.8.0 lib/contentful/management/space_user_methods_factory.rb
contentful-management-3.7.0 lib/contentful/management/space_user_methods_factory.rb
contentful-management-3.6.0 lib/contentful/management/space_user_methods_factory.rb
contentful-management-3.5.0 lib/contentful/management/space_user_methods_factory.rb
contentful-management-3.4.0 lib/contentful/management/space_user_methods_factory.rb
contentful-management-3.3.0 lib/contentful/management/space_user_methods_factory.rb
contentful-management-3.2.0 lib/contentful/management/space_user_methods_factory.rb