debian-mirror-gitlab/app/serializers/build_serializer.rb
2017-09-10 17:25:29 +05:30

8 lines
182 B
Ruby

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