Class: Pling::ActionMailer::Gateway
- Inherits:
-
Gateway
- Object
- Gateway
- Pling::ActionMailer::Gateway
- Defined in:
- lib/pling/action_mailer/gateway.rb
Instance Method Summary collapse
- #deliver!(message, device) ⇒ Object
-
#initialize(configuration) ⇒ Gateway
constructor
A new instance of Gateway.
Constructor Details
#initialize(configuration) ⇒ Gateway
Returns a new instance of Gateway.
10 11 12 13 |
# File 'lib/pling/action_mailer/gateway.rb', line 10 def initialize(configuration) super require_configuration([:from]) end |
Instance Method Details
#deliver!(message, device) ⇒ Object
15 16 17 18 |
# File 'lib/pling/action_mailer/gateway.rb', line 15 def deliver!(, device) mailer = configuration[:mailer] || Pling::ActionMailer::Mailer mailer.(, device, configuration).deliver end |