13 lines
240 B
Ruby
13 lines
240 B
Ruby
|
# 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
|