gitlab-org--gitlab-foss/lib/api/entities/avatar.rb

12 lines
241 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module API
module Entities
class Avatar < Grape::Entity
expose :avatar_url do |avatarable, options|
avatarable.avatar_url(only_path: false, size: options[:size])
end
end
end
end