Module: Resend::Emails
- Included in:
- Client
- Defined in:
- lib/resend/emails.rb
Overview
Module responsible for wrapping email sending API
Class Method Summary collapse
- .get(email_id = "") ⇒ Object
-
.send(params) ⇒ Object
send email functionality resend.com/docs/api-reference/send-email.
Instance Method Summary collapse
-
#send_email(params) ⇒ Object
This method is kept here for backwards compatibility Use Resend::Emails.send instead.
Class Method Details
.get(email_id = "") ⇒ Object
16 17 18 19 |
# File 'lib/resend/emails.rb', line 16 def get(email_id = "") path = "emails/#{email_id}" Resend::Request.new(path, {}, "get").perform end |
.send(params) ⇒ Object
send email functionality resend.com/docs/api-reference/send-email
11 12 13 14 |
# File 'lib/resend/emails.rb', line 11 def send(params) path = "emails" Resend::Request.new(path, params, "post").perform end |
Instance Method Details
#send_email(params) ⇒ Object
This method is kept here for backwards compatibility Use Resend::Emails.send instead.
24 25 26 27 |
# File 'lib/resend/emails.rb', line 24 def send_email(params) warn "[DEPRECATION] `send_email` is deprecated. Please use `Resend::Emails.send` instead." Resend::Emails.send(params) end |