2018-07-19 14:43:13 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-03-28 06:48:53 -04:00
|
|
|
class DeploymentSerializer < BaseSerializer
|
|
|
|
entity DeploymentEntity
|
2017-04-24 16:34:36 -04:00
|
|
|
|
|
|
|
def represent_concise(resource, opts = {})
|
|
|
|
opts[:only] = [:iid, :id, :sha, :created_at, :tag, :last?, :id, ref: [:name]]
|
|
|
|
represent(resource, opts)
|
|
|
|
end
|
2017-03-28 06:48:53 -04:00
|
|
|
end
|