class Sidekiq::CurrentAttributes::Save
Public Class Methods
new(cattr)
click to toggle source
# File lib/sidekiq/middleware/current_attributes.rb, line 18 def initialize(cattr) @klass = cattr end
Public Instance Methods
call(_, job, _, _) { || ... }
click to toggle source
# File lib/sidekiq/middleware/current_attributes.rb, line 22 def call(_, job, _, _) job["cattr"] = @klass.attributes yield end