lib/mail_room/delivery/sidekiq.rb in mail_room-0.4.2 vs lib/mail_room/delivery/sidekiq.rb in mail_room-0.5.0
- old
+ new
@@ -2,12 +2,12 @@
require "securerandom"
require "json"
module MailRoom
module Delivery
- # Postback Delivery method
- # @author Tony Pitale
+ # Sidekiq Delivery method
+ # @author Douwe Maan
class Sidekiq
Options = Struct.new(:redis_url, :namespace, :queue, :worker) do
def initialize(mailbox)
redis_url = mailbox.delivery_options[:redis_url] || "redis://localhost:6379"
namespace = mailbox.delivery_options[:namespace]
@@ -19,10 +19,10 @@
end
attr_accessor :options
# Build a new delivery, hold the mailbox configuration
- # @param [MailRoom::Mailbox]
+ # @param [MailRoom::Delivery::Sidekiq::Options]
def initialize(options)
@options = options
end
# deliver the message by pushing it onto the configured Sidekiq queue