Method: Gitlab::Client::Packages#project_package

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

#project_package(project, id) ⇒ Gitlab::ObjectifiedHash

Get a single project package.

Examples:

Gitlab.project_package(5, 3)

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • id (Integer)

    ID of a package.

Returns:



54
55
56
# File 'lib/gitlab/client/packages.rb', line 54

def project_package(project, id)
  get("/projects/#{url_encode project}/packages/#{id}")
end