gitlab-org--gitlab-foss/app/serializers/build_serializer.rb
2018-07-23 11:27:39 -07:00

10 lines
213 B
Ruby

# frozen_string_literal: true
class BuildSerializer < BaseSerializer
entity JobEntity
def represent_status(resource)
data = represent(resource, { only: [:status] })
data.fetch(:status, {})
end
end