build_serializer.rb 213 Bytes
Newer Older
1 2
# frozen_string_literal: true

3
class BuildSerializer < BaseSerializer
4
  entity JobEntity
5

6 7
  def represent_status(resource)
    data = represent(resource, { only: [:status] })
8
    data.fetch(:status, {})
9
  end
10
end