Sha256: cbd009542b3030f0195980c51dad9a4aac3b63f168e8adfef3e268be40d00a26

Contents?: true

Size: 513 Bytes

Versions: 7

Compression:

Stored size: 513 Bytes

Contents

module Contentful
  module Management
    # Wrapper for Users API for usage from within Organization
    # @private
    class OrganizationUserMethodsFactory
      attr_reader :client

      def initialize(client, organization_id)
        @client = client
        @organization_id = organization_id
      end

      def find(id)
        User.find(client, nil, nil, id, @organization_id)
      end

      def all(params = {})
        User.all(client, nil, nil, params, @organization_id)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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