Sha256: d60c4dd3e7b577926f0567c8699bb78cf26b945ee9966328cd5d4aa3fc10c06b
Contents?: true
Size: 446 Bytes
Versions: 3
Compression:
Stored size: 446 Bytes
Contents
require 'active_job' module SmsCarrier # The <tt>SmsCarrier::DeliveryJob</tt> class is used when you # want to send SMSes outside of the request-response cycle. class DeliveryJob < ActiveJob::Base # :nodoc: queue_as { SmsCarrier::Base.deliver_later_queue_name } def perform(sms, sms_method, delivery_method, *args) #:nodoc: sms.constantize.public_send(sms_method, *args).send(delivery_method) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sms_carrier-0.1.2 | lib/sms_carrier/delivery_job.rb |
sms_carrier-0.1.1 | lib/sms_carrier/delivery_job.rb |
sms_carrier-0.1.0 | lib/sms_carrier/delivery_job.rb |