class Sidekiq::Extensions::DelayedClass
Adds 'delay', 'delay_for' and `delay_until` methods to all Classes to offload class method execution to Sidekiq. Examples:
User.delay.delete_inactive Wikipedia.delay.download_changes_for(Date.today)
Public Instance Methods
perform(yml)
click to toggle source
# File lib/sidekiq/extensions/class_methods.rb, line 16 def perform(yml) (target, method_name, args) = YAML.load(yml) target.__send__(method_name, *args) end