Class: Tartarus::ArchivableItem::SidekiqCronJobSerializer

Inherits:
Object
  • Object
show all
Defined in:
lib/tartarus/archivable_item/sidekiq_cron_job_serializer.rb

Instance Method Summary collapse

Instance Method Details

#serialize(archivable_item) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/tartarus/archivable_item/sidekiq_cron_job_serializer.rb', line 4

def serialize(archivable_item)
  {
    name: name_for_item(archivable_item),
    description: description_for_item(archivable_item),
    cron: archivable_item.cron,
    class: Tartarus::Sidekiq::ScheduleArchivingModelJob,
    args: [archivable_item.name],
    queue: archivable_item.queue,
    active_job: archivable_item.active_job
  }
end