Method: Gitlab::Client::Users#ssh_key

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

#ssh_key(id) ⇒ Gitlab::ObjectifiedHash

Gets information about SSH key.

Examples:

Gitlab.ssh_key(1)

Parameters:

  • id (Integer)

    The ID of a user’s SSH key.

Returns:



167
168
169
# File 'lib/gitlab/client/users.rb', line 167

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