Class: MandrillMailer::MessageMailer
- Inherits:
-
CoreMailer
- Object
- CoreMailer
- MandrillMailer::MessageMailer
- Defined in:
- lib/mandrill_mailer/offline.rb,
lib/mandrill_mailer/message_mailer.rb
Instance Attribute Summary
Attributes inherited from CoreMailer
#async, #ip_pool, #message, #send_at
Instance Method Summary collapse
-
#deliver ⇒ Object
Public: Triggers the stored Mandrill params to be sent to the Mandrill api.
Methods inherited from CoreMailer
#bcc, default, #from, #mandrill_mail, #mandrill_mail_handler, super_defaults, test, test_setup_for, #to, #to=
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class MandrillMailer::CoreMailer
Instance Method Details
#deliver ⇒ Object
Public: Triggers the stored Mandrill params to be sent to the Mandrill api
99 100 101 102 103 104 105 106 107 108 |
# File 'lib/mandrill_mailer/message_mailer.rb', line 99 def deliver MandrillMailer::Mock.new({ :message => , :async => async, :ip_pool => ip_pool, :send_at => send_at }).tap do |mock| MandrillMailer.deliveries << mock end end |