module SendGrid4r::REST::Mail

SendGrid Web API v3 Mail

SendGrid Web API v3 Mail

SendGrid Web API v3 Mail

SendGrid Web API v3 Mail

SendGrid Web API v3 Mail

SendGrid Web API v3 Mail

SendGrid Web API v3 Mail

SendGrid Web API v3 Mail

Constants

Address
Attachment
Content
MailSettings
Params
Personalization
TrackingSettings

Public Class Methods

url() click to toggle source
# File lib/sendgrid4r/rest/mail/mail.rb, line 9
def self.url
  "#{BASE_URL}/mail/send"
end

Public Instance Methods

send(params:, &block) click to toggle source
# File lib/sendgrid4r/rest/mail/mail.rb, line 13
def send(params:, &block)
  post(@auth, Mail.url, params.to_h, &block)
end