Sha256: 7edafb62d0004bb2b56d7655749f3238d3bed400627e628526588c02b2f2ad58

Contents?: true

Size: 291 Bytes

Versions: 2

Compression:

Stored size: 291 Bytes

Contents

require 'active_job'

class Cellular::Jobs::AsyncMessenger < ActiveJob::Base
  queue_as :cellular

  def perform(sms_options)
    sms_options.keys.each do |key|
      sms_options[key.to_sym] = sms_options.delete key
    end

    sms = Cellular::SMS.new sms_options
    sms.deliver
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cellular-2.1.0 lib/cellular/jobs/async_messenger.rb
cellular-2.0.0 lib/cellular/jobs/async_messenger.rb