Sha256: a835eea635dd563ad8622b77c15de6507c7a2a9b67b96120d75880cd5c3c8f02

Contents?: true

Size: 382 Bytes

Versions: 3

Compression:

Stored size: 382 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
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
contentful-management-3.0.0 lib/contentful/management/space_user_methods_factory.rb
contentful-management-2.13.1 lib/contentful/management/space_user_methods_factory.rb
contentful-management-2.13.0 lib/contentful/management/space_user_methods_factory.rb