Class: OutboundMailbox::MailDelivery
- Inherits:
-
Object
- Object
- OutboundMailbox::MailDelivery
- Defined in:
- lib/outbound_mailbox/mail_delivery.rb
Overview
Mail delivery handler (same contract as Mail::TestMailer). Register with Action Mailer via config.action_mailer.delivery_method = :outbound_mailbox.
Instance Attribute Summary collapse
-
#settings ⇒ Object
Returns the value of attribute settings.
Instance Method Summary collapse
- #deliver!(mail) ⇒ Object
-
#initialize(values = {}) ⇒ MailDelivery
constructor
A new instance of MailDelivery.
Constructor Details
#initialize(values = {}) ⇒ MailDelivery
Returns a new instance of MailDelivery.
9 10 11 |
# File 'lib/outbound_mailbox/mail_delivery.rb', line 9 def initialize(values = {}) @settings = (values || {}).dup end |
Instance Attribute Details
#settings ⇒ Object
Returns the value of attribute settings.
7 8 9 |
# File 'lib/outbound_mailbox/mail_delivery.rb', line 7 def settings @settings end |
Instance Method Details
#deliver!(mail) ⇒ Object
13 14 15 |
# File 'lib/outbound_mailbox/mail_delivery.rb', line 13 def deliver!(mail) OutboundMailbox::OutboundEmail.create_from_mail!(mail) end |