summaryrefslogtreecommitdiff
path: root/lib/api/entities/badge.rb
blob: 1e3e2ec469aac111e759ffff4e6bcb454daffd33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

module API
  module Entities
    class Badge < Entities::BasicBadgeDetails
      expose :id
      expose :kind do |badge|
        badge.type == 'ProjectBadge' ? 'project' : 'group'
      end
    end
  end
end