summaryrefslogtreecommitdiff
path: root/lib/api/entities/avatar.rb
blob: 7d5c762afcc8e34ba5859c73ab3e45f0097a69f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
# 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