Method: Gitlab::Client::Groups#group

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

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

Gets a single group.

Examples:

Gitlab.group(42)

Parameters:

  • id (Integer)

    The ID of a group.

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

    A customizable set of options.

Options Hash (options):

  • :with_custom_attributes (Boolean)

    Include custom attributes in response (admins only)

  • :with_projects (Boolean)

    Include details about group projects (default: true)

Returns:

[View source]

31
32
33
# File 'lib/gitlab/client/groups.rb', line 31

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