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