Sha256: 6b244f1e67230306e46834a20c08cfb45efe2ab44a15d1f313a0c74e10b1e143

Contents?: true

Size: 496 Bytes

Versions: 1

Compression:

Stored size: 496 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
        User.all(client, nil, nil, {}, @organization_id)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
contentful-management-3.1.0 lib/contentful/management/organization_user_methods_factory.rb