Class: Textris::Delay::ActiveJob::Job

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
lib/textris/delay/active_job/job.rb

Instance Method Summary collapse

Instance Method Details

#perform(texter, action, args) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/textris/delay/active_job/job.rb', line 7

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

  if texter.present?
    texter.new(action, *args).call_action.deliver_now
  end
end