Class: MonkeyMail::Mail::LetterOpener
- Defined in:
- lib/monkey_mail/mail/letter_opener.rb
Instance Attribute Summary collapse
-
#mail ⇒ Object
Returns the value of attribute mail.
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from MonkeyMail::Base
Instance Attribute Details
#mail ⇒ Object
Returns the value of attribute mail.
11 12 13 |
# File 'lib/monkey_mail/mail/letter_opener.rb', line 11 def mail @mail end |
Instance Method Details
#deliver ⇒ Object
13 14 15 16 17 18 |
# File 'lib/monkey_mail/mail/letter_opener.rb', line 13 def deliver return if params[:skip_delivery] prepare_mail! delivery_method.deliver!(mail) end |
#deliver_later(wait: nil) ⇒ Object
20 21 22 |
# File 'lib/monkey_mail/mail/letter_opener.rb', line 20 def deliver_later(wait: nil) deliver end |