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