Class: Textris::Delay::Sidekiq::Worker

Inherits:
Object
  • Object
show all
Includes:
Sidekiq::Worker
Defined in:
lib/textris/delay/sidekiq/worker.rb

Instance Method Summary collapse

Instance Method Details

#perform(texter, action, args) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/textris/delay/sidekiq/worker.rb', line 7

def perform(texter, action, args)
  texter = texter.safe_constantize

  if texter.present?
    args = ::Textris::Delay::Sidekiq::Serializer.deserialize(args)

    texter.new(action, *args).call_action.deliver
  end
end