Sha256: 6133370ff05fc71e805b9cbd037162786d08c6bf004295c79f101ed0c6202f91

Contents?: true

Size: 263 Bytes

Versions: 2

Compression:

Stored size: 263 Bytes

Contents

require 'sidekiq'

module Drill
  class DeliveryWorker
    include Sidekiq::Worker
    sidekiq_options queue: :drill_mailer

    def perform(template_name, message_hash)
      Drill.client.messages.send_template(template_name, [], message_hash)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
drill-mailer-0.3.0 lib/drill/delivery_worker.rb
drill-mailer-0.1.1 lib/drill/delivery_worker.rb