class Sidekiq::TrackableBatch::UpdateNotifier
@api private
Public Instance Methods
perform(bid, target, args)
click to toggle source
# File lib/sidekiq/trackable_batch/update_notifier.rb, line 8 def perform(bid, target, args) tracking = Tracking.new(bid).to_h klass, method = target.split('#') Object.const_get(klass).new.send( method || :on_update, tracking, args.reduce({}) { |m, (k, v)| m.merge k.to_sym => v } ) end