9 lines
184 B
Ruby
9 lines
184 B
Ruby
|
class BuildSerializer < BaseSerializer
|
||
|
entity BuildEntity
|
||
|
|
||
|
def represent_status(resource)
|
||
|
data = represent(resource, { only: [:status] })
|
||
|
data.fetch(:status, {})
|
||
|
end
|
||
|
end
|