module Sidekiq::DelayExtensions::JobRecord
Public Instance Methods
display_args()
click to toggle source
Calls superclass method
# File lib/sidekiq/delay_extensions/api.rb, line 22 def display_args # Unwrap known wrappers so they show up in a human-friendly manner in the Web UI @display_args ||= case klass when /\ASidekiq::DelayExtensions::Delayed/ safe_load(args[0], args) do |_, _, arg, kwarg| if !kwarg || kwarg.empty? arg else [arg, kwarg] end end else super end end
display_class()
click to toggle source
Calls superclass method
# File lib/sidekiq/delay_extensions/api.rb, line 8 def display_class # Unwrap known wrappers so they show up in a human-friendly manner in the Web UI @klass ||= self["display_class"] || begin case klass when /\ASidekiq::DelayExtensions::Delayed/ safe_load(args[0], klass) do |target, method, _| "#{target}.#{method}" end else super end end end