blob: 8aa894f9feeba1d34649a9690cd46b9a2543b9b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
class StatusEntity < Grape::Entity
include RequestAwareEntity
include CiStatusHelper
format_with(:status_favicon_path) do |favicon_name|
ci_status_favicon_path(favicon_name)
end
expose :icon, :text, :label, :group
expose :has_details?, as: :has_details
expose :details_path
expose :favicon, format_with: :status_favicon_path
end
|