summaryrefslogtreecommitdiff
path: root/app/serializers/build_serializer.rb
blob: 79b670011991c77209624860fa7f5f66d48e0668 (plain)
1
2
3
4
5
6
7
8
class BuildSerializer < BaseSerializer
  entity BuildEntity

  def represent_status(resource)
    data = represent(resource, { only: [:status] })
    data.fetch(:status, {})
  end
end