Module: Gitlab::Client::Keys

Included in:
Gitlab::Client
Defined in:
lib/gitlab/client/keys.rb

Overview

Defines methods related to keys.

Instance Method Summary collapse

Instance Method Details

#key(id) ⇒ Gitlab::ObjectifiedHash

Gets information about a key.

Examples:

Gitlab.key(1)

Parameters:

  • id (Integer)

    The ID of a key.

Returns:


12
13
14
# File 'lib/gitlab/client/keys.rb', line 12

def key(id)
  get("/keys/#{id}")
end