Sha256: e98402ac7db89f945a7fca82991ce695d9eebedda642ac9f73843484a6c1cb83

Contents?: true

Size: 276 Bytes

Versions: 5

Compression:

Stored size: 276 Bytes

Contents

# -*- encoding: utf-8 -*-

module SendGrid4r::REST
  #
  # SendGrid Web API v3 Mail
  #
  module Mail
    include Request

    def self.url
      "#{BASE_URL}/mail/send"
    end

    def send(params:, &block)
      post(@auth, Mail.url, params.to_h, &block)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sendgrid4r-1.15.0 lib/sendgrid4r/rest/mail/mail.rb
sendgrid4r-1.14.0 lib/sendgrid4r/rest/mail/mail.rb
sendgrid4r-1.13.0 lib/sendgrid4r/rest/mail/mail.rb
sendgrid4r-1.12.0 lib/sendgrid4r/rest/mail/mail.rb
sendgrid4r-1.11.0 lib/sendgrid4r/rest/mail/mail.rb