Class: DeploymentSerializer

Inherits:
BaseSerializer show all
Defined in:
app/serializers/deployment_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_concise(resource, opts = {}) ⇒ Object


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

def represent_concise(resource, opts = {})
  opts[:only] = [:iid, :id, :sha, :created_at, :deployed_at, :tag, :last?, :id, ref: [:name]]
  represent(resource, opts)
end