Sha256: 502401bb11c869e820e7a8a689f6261af5e10827c4b4abfe3fdfd5582dafa1b6

Contents?: true

Size: 267 Bytes

Versions: 4

Compression:

Stored size: 267 Bytes

Contents

class Paperbin::WriteWorker
  include Sidekiq::Worker
  sidekiq_options queue: (ENV['PAPERBIN_WRITE_QUEUE'] || 'default')

  def perform(item_id, item_type)
    paperbin_handler = Paperbin::Handler.new(item_id, item_type)
    paperbin_handler.save_versions
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
paperbin-0.2.3 lib/paperbin/write_worker.rb
paperbin-0.2.2 lib/paperbin/write_worker.rb
paperbin-0.2.1 lib/paperbin/write_worker.rb
paperbin-0.2.0 lib/paperbin/write_worker.rb