Sha256: d06cc53bf7021a7304c28cdcd1859b1c7f0f4800f7fae5d5755df8d4237d7def
Contents?: true
Size: 582 Bytes
Versions: 6
Compression:
Stored size: 582 Bytes
Contents
module Shipit class TaskSerializer < ActiveModel::Serializer include ConditionalAttributes has_one :author has_one :revision, serializer: ShortCommitSerializer attributes :id, :url, :html_url, :output_url, :type, :status, :updated_at, :created_at def revision object.until_commit end def url api_stack_task_url(object.stack, object) end def html_url stack_task_url(object.stack, object) end def output_url api_stack_task_output_url(object.stack, object) end def type :task end end end
Version data entries
6 entries across 6 versions & 1 rubygems