2019-01-05 12:43:28 +01:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class REST::ScheduledStatusSerializer < ActiveModel::Serializer
|
2019-01-06 12:03:27 +01:00
|
|
|
attributes :id, :scheduled_at, :params
|
2019-01-05 12:43:28 +01:00
|
|
|
|
|
|
|
has_many :media_attachments, serializer: REST::MediaAttachmentSerializer
|
|
|
|
|
|
|
|
def id
|
|
|
|
object.id.to_s
|
|
|
|
end
|
2019-01-06 12:03:27 +01:00
|
|
|
|
|
|
|
def params
|
|
|
|
object.params.without(:application_id)
|
|
|
|
end
|
2019-01-05 12:43:28 +01:00
|
|
|
end
|