gitlab-org--gitlab-foss/app/serializers/build_serializer.rb

9 lines
182 B
Ruby
Raw Normal View History

class BuildSerializer < BaseSerializer
2017-06-07 05:36:41 -04:00
entity JobEntity
2017-03-10 10:16:48 -05:00
def represent_status(resource)
data = represent(resource, { only: [:status] })
data.fetch(:status, {})
2017-03-10 10:16:48 -05:00
end
end