Module: Patches::Projects

Defined in:
lib/ext/gitlab_ext.rb

Overview

Defines methods related to projects.

Instance Method Summary collapse

Instance Method Details

#project_usesrs(project, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>

Gets a list of project users.

Examples:

Gitlab.project_usesrs(42)
Gitlab.project_usesrs('gitlab')

Parameters:

  • project (Integer, String)

    The ID or path of a project.

  • options (Hash) (defaults to: {})

    A customizable set of options.

Options Hash (options):

  • :page (Integer)

    The page number.

  • :per_page (Integer)

    The number of results per page.

Returns:

  • (Array<Gitlab::ObjectifiedHash>)


19
20
21
# File 'lib/ext/gitlab_ext.rb', line 19

def project_usesrs(project, options = {})
  get("/projects/#{url_encode project}/users", query: options)
end