Class: MailRoom::Delivery::Sidekiq::Options
- Inherits:
-
Struct
- Object
- Struct
- MailRoom::Delivery::Sidekiq::Options
- Defined in:
- lib/mail_room/delivery/sidekiq.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#queue ⇒ Object
Returns the value of attribute queue.
-
#redis_db ⇒ Object
Returns the value of attribute redis_db.
-
#redis_url ⇒ Object
Returns the value of attribute redis_url.
-
#sentinels ⇒ Object
Returns the value of attribute sentinels.
-
#worker ⇒ Object
Returns the value of attribute worker.
Instance Method Summary collapse
-
#initialize(mailbox) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(mailbox) ⇒ Options
Returns a new instance of Options.
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/mail_room/delivery/sidekiq.rb', line 12 def initialize(mailbox) redis_url = mailbox.[:redis_url] || "redis://localhost:6379" redis_db = mailbox.[:redis_db] || 0 namespace = mailbox.[:namespace] sentinels = mailbox.[:sentinels] queue = mailbox.[:queue] || "default" worker = mailbox.[:worker] logger = mailbox.logger super(redis_url, namespace, sentinels, queue, worker, logger, redis_db) end |
Instance Attribute Details
#logger ⇒ Object
Returns the value of attribute logger
11 12 13 |
# File 'lib/mail_room/delivery/sidekiq.rb', line 11 def logger @logger end |
#namespace ⇒ Object
Returns the value of attribute namespace
11 12 13 |
# File 'lib/mail_room/delivery/sidekiq.rb', line 11 def namespace @namespace end |
#queue ⇒ Object
Returns the value of attribute queue
11 12 13 |
# File 'lib/mail_room/delivery/sidekiq.rb', line 11 def queue @queue end |
#redis_db ⇒ Object
Returns the value of attribute redis_db
11 12 13 |
# File 'lib/mail_room/delivery/sidekiq.rb', line 11 def redis_db @redis_db end |
#redis_url ⇒ Object
Returns the value of attribute redis_url
11 12 13 |
# File 'lib/mail_room/delivery/sidekiq.rb', line 11 def redis_url @redis_url end |
#sentinels ⇒ Object
Returns the value of attribute sentinels
11 12 13 |
# File 'lib/mail_room/delivery/sidekiq.rb', line 11 def sentinels @sentinels end |
#worker ⇒ Object
Returns the value of attribute worker
11 12 13 |
# File 'lib/mail_room/delivery/sidekiq.rb', line 11 def worker @worker end |