Method: Gitlab::Client::Projects#projects

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

#projects(options = {}) ⇒ Array<Gitlab::ObjectifiedHash>

Gets a list of projects owned by the authenticated user.

(Any provided options will be passed to Gitlab. See Gitlab docs for all valid options)

Examples:

Gitlab.projects

Parameters:

  • 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:


18
19
20
# File 'lib/gitlab/client/projects.rb', line 18

def projects(options = {})
  get('/projects', query: options)
end