Class: Decidim::ActionDelegator::SendSmsJob

Inherits:
ApplicationJob
  • Object
show all
Defined in:
app/jobs/decidim/action_delegator/send_sms_job.rb

Constant Summary collapse

SMSVIRTUAL_WSDL_URL =
"https://websms.masmovil.com/api_php/smsvirtual.wsdl"

Instance Method Summary collapse

Instance Method Details

#perform(sender, mobile_phone_number, message) ⇒ Object



14
15
16
17
18
19
20
21
22
# File 'app/jobs/decidim/action_delegator/send_sms_job.rb', line 14

def perform(sender, mobile_phone_number, message)
  @sender = sender
  @mobile_phone_number = mobile_phone_number
  @message = message

  send_sms!

  raise SendSmsJobException, response unless success?
end