Method: Gitlab::Client::Keys#key

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

#key(id) ⇒ Gitlab::ObjectifiedHash

Gets information about a key.

Examples:

Gitlab.key(1)

Parameters:

  • id (Integer)

    The ID of a key.

Returns:

[View source]

14
15
16
# File 'lib/gitlab/client/keys.rb', line 14

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