Class: Courrier::Email::Providers::Base
- Inherits:
-
Object
- Object
- Courrier::Email::Providers::Base
- Defined in:
- lib/courrier/email/providers/base.rb
Direct Known Subclasses
Brevo, Cloudflare, Lettermint, Logger, Loops, Mailgun, Mailjet, Mailpace, Postmark, Resend, Sendgrid, Ses, Smtp2go, Sparkpost, Userlist
Class Method Summary collapse
Instance Method Summary collapse
- #body ⇒ Object
- #deliver ⇒ Object
-
#initialize(api_key: nil, options: {}, provider_options: {}, context_options: {}, custom_headers: {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(api_key: nil, options: {}, provider_options: {}, context_options: {}, custom_headers: {}) ⇒ Base
Returns a new instance of Base.
11 12 13 14 15 16 17 |
# File 'lib/courrier/email/providers/base.rb', line 11 def initialize(api_key: nil, options: {}, provider_options: {}, context_options: {}, custom_headers: {}) @api_key = api_key @options = @provider_options = @context_options = @custom_headers = custom_headers end |
Class Method Details
.config_options ⇒ Object
9 |
# File 'lib/courrier/email/providers/base.rb', line 9 def self. = [] |
Instance Method Details
#body ⇒ Object
29 |
# File 'lib/courrier/email/providers/base.rb', line 29 def body = raise Courrier::NotImplementedError, "Provider class must implement `body`" |