Class: Pling::ActionMailer::Gateway

Inherits:
Gateway
  • Object
show all
Defined in:
lib/pling/action_mailer/gateway.rb

Instance Method Summary collapse

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!(message, device)
  mailer = configuration[:mailer] || Pling::ActionMailer::Mailer
  mailer.pling_message(message, device, configuration).deliver
end