Method: Gitlab::Client::Projects#project

Defined in:
lib/gitlab/client/projects.rb

#project(id, options = {}) ⇒ Gitlab::ObjectifiedHash

Gets information about a project.

Examples:

Gitlab.project(3)
Gitlab.project('gitlab')

Parameters:

  • id (Integer, String)

    The ID or path of a project.

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

    :license Include project license data

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

    :statistics Include project statistics.

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

    :with_custom_attributes Include custom attributes in response. (admins only)

Returns:



51
52
53
# File 'lib/gitlab/client/projects.rb', line 51

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