Class: BrevoRails::ActionMailer::DeliveryMethod
- Inherits:
-
Object
- Object
- BrevoRails::ActionMailer::DeliveryMethod
- Defined in:
- lib/brevo_rails/action_mailer/delivery_method.rb
Constant Summary collapse
- ALLOWED_PARAMS =
%i[api_key].freeze
Instance Attribute Summary collapse
-
#settings ⇒ Object
Returns the value of attribute settings.
Instance Method Summary collapse
- #deliver!(message) ⇒ Object
-
#initialize(settings) ⇒ DeliveryMethod
constructor
A new instance of DeliveryMethod.
Constructor Details
#initialize(settings) ⇒ DeliveryMethod
Returns a new instance of DeliveryMethod.
10 11 12 |
# File 'lib/brevo_rails/action_mailer/delivery_method.rb', line 10 def initialize(settings) self.settings = settings end |
Instance Attribute Details
#settings ⇒ Object
Returns the value of attribute settings.
6 7 8 |
# File 'lib/brevo_rails/action_mailer/delivery_method.rb', line 6 def settings @settings end |
Instance Method Details
#deliver!(message) ⇒ Object
14 15 16 17 18 |
# File 'lib/brevo_rails/action_mailer/delivery_method.rb', line 14 def deliver!() mail = BrevoRails::Mail.() api.send_transac_email(mail) end |