Class: Sendgrid::API::Web::Mail::Services
- Defined in:
- lib/sendgrid/api/web/mail.rb
Instance Attribute Summary
Attributes inherited from Service
Instance Method Summary collapse
-
#send(options = {}) ⇒ Entities::Response
Send email.
Methods inherited from Service
Constructor Details
This class inherits a constructor from Sendgrid::API::Service
Instance Method Details
#send(options = {}) ⇒ Entities::Response
Send email.
34 35 36 37 |
# File 'lib/sendgrid/api/web/mail.rb', line 34 def send( = {}) ['x-smtpapi'] = .delete(:x_smtpapi) if .member?(:x_smtpapi) perform_request(Entities::Response, 'mail.send.json', ) end |