Class: BuildSerializer

Inherits:
BaseSerializer show all
Defined in:
app/serializers/build_serializer.rb

Instance Attribute Summary

Attributes inherited from BaseSerializer

#params

Instance Method Summary collapse

Methods inherited from BaseSerializer

entity, #initialize, #represent

Constructor Details

This class inherits a constructor from BaseSerializer

Instance Method Details

#represent_status(resource) ⇒ Object


6
7
8
9
# File 'app/serializers/build_serializer.rb', line 6

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