Method: Gitlab::Client::Users#email

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

#email(id) ⇒ Gitlab::ObjectifiedHash

Get a single email.

Examples:

Gitlab.email(3)

Parameters:

  • id (Integer)

    The ID of a email.

Returns:

[View source]

229
230
231
# File 'lib/gitlab/client/users.rb', line 229

def email(id)
  get("/user/emails/#{id}")
end