Class: MailRoom::Delivery::Que
- Inherits:
-
Object
- Object
- MailRoom::Delivery::Que
- Defined in:
- lib/mail_room/delivery/que.rb
Overview
Que Delivery method
Defined Under Namespace
Classes: Options
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#deliver(message) ⇒ Object
deliver the message by pushing it onto the configured Sidekiq queue.
-
#initialize(options) ⇒ Que
constructor
Build a new delivery, hold the mailbox configuration.
Constructor Details
#initialize(options) ⇒ Que
Build a new delivery, hold the mailbox configuration
31 32 33 |
# File 'lib/mail_room/delivery/que.rb', line 31 def initialize() @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
27 28 29 |
# File 'lib/mail_room/delivery/que.rb', line 27 def @options end |
Instance Method Details
#deliver(message) ⇒ Object
deliver the message by pushing it onto the configured Sidekiq queue
37 38 39 40 |
# File 'lib/mail_room/delivery/que.rb', line 37 def deliver() queue_job(()) @options.logger.info({ delivery_method: 'Que', action: 'message pushed' }) end |