blob: 0db7624b3f76adb8addef48bf9b0075739f18fa0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# frozen_string_literal: true
class JobGroupEntity < Grape::Entity
include RequestAwareEntity
expose :name
expose :size
expose :detailed_status, as: :status, with: DetailedStatusEntity
expose :jobs, with: JobEntity
private
alias_method :group, :object
def detailed_status
group.detailed_status(request.current_user)
end
end
|