debian-mirror-gitlab/app/serializers/build_serializer.rb
2018-11-18 11:00:15 +05:30

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