hummingbird-me/kitsu-server

View on GitHub
app/workers/ama_starting_worker.rb

Summary

Maintainability
A
0 mins
Test Coverage
B
80%
class AMAStartingWorker
  include Sidekiq::Worker
  sidekiq_options queue: 'soon'

  def self.perform_at(time, ama)
    super(time, ama.to_global_id.to_s)
  end

  def self.perform_async(ama)
    super(ama.to_global_id.to_s)
  end

  def perform(ama)
    ama = GlobalID::Locator.locate(ama)
    ama.send_ama_notification
  end
end