Method: Gitlab::Client::Projects#project_custom_attribute

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

#project_custom_attribute(key, project_id) ⇒ Gitlab::ObjectifiedHash

Gets single project custom_attribute.

Examples:

Gitlab.project_custom_attribute(key, 2)

Parameters:

  • key (String)

    The custom_attributes key

  • project_id (Integer)

    The ID of a project.

Returns:

[View source]

666
667
668
# File 'lib/gitlab/client/projects.rb', line 666

def project_custom_attribute(key, project_id)
  get("/projects/#{project_id}/custom_attributes/#{key}")
end