Sha256: a81eff98c6f43de8fb0b8de8a853699ffd2f60ef29dda468b3af56a4e6166988
Contents?: true
Size: 437 Bytes
Versions: 12
Compression:
Stored size: 437 Bytes
Contents
# frozen_string_literal: true module SidekiqPublisher module Worker def self.included(base) base.include(Sidekiq::Worker) base.extend(ClassMethods) end module ClassMethods def client_push(item) SidekiqPublisher::Job.create!( job_class: item["class"].to_s, args: item["args"], run_at: item["at"], queue: item["queue"] ) end end end end
Version data entries
12 entries across 12 versions & 1 rubygems