gitlab-org--gitlab-foss/app/serializers/build_serializer.rb
2017-06-13 09:53:54 +02:00

8 lines
182 B
Ruby

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