module Gitlab::Client::Avatar
Defines methods related to avatar. @see docs.gitlab.com/ce/api/avatar.html
Public Instance Methods
avatar(options = {})
click to toggle source
Get a single avatar URL for a user with the given email address.
@example
Gitlab.avatar(email: 'admin@example.com') Gitlab.avatar(email: 'admin@example.com', size: 32)
@param [Hash] options A customizable set of options. @option options [String] :email(required) Public email address of the user. @option options [Integer] :size(optional) Single pixel dimension (since images are squares). Only used for avatar lookups at Gravatar or at the configured Libravatar server. @return <Gitlab::ObjectifiedHash>
# File lib/gitlab/client/avatar.rb, line 17 def avatar(options = {}) get('/avatar', query: options) end