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