Welcome to mirror list, hosted at ThFree Co, Russian Federation.

build_trace_entity.rb « serializers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b5bac8a5d641d80b429ae41e4af47613f1a22563 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

class BuildTraceEntity < Grape::Entity
  expose :build_id, as: :id
  expose :build_status, as: :status
  expose :build_complete?, as: :complete

  expose :state
  expose :append
  expose :truncated
  expose :offset
  expose :size
  expose :total

  expose :json_lines, as: :lines, if: ->(*) { object.json? }
  expose :html_lines, as: :html, if: ->(*) { object.html? }
end