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

9 lines
184 B
Ruby
Raw Normal View History

class BuildSerializer < BaseSerializer
entity BuildEntity
2017-05-29 03:58:20 -04:00
def represent_status(resource)
2017-03-10 10:16:48 -05:00
data = represent(resource, { only: [:status] })
data.fetch(:status, {})
2017-03-10 10:16:48 -05:00
end
end