Class: SendGrid::Response
- Inherits:
-
Object
- Object
- SendGrid::Response
- Defined in:
- app/models/sendgrid_notification/sendgrid_client.rb
Overview
monkey patch
Direct Known Subclasses
Instance Method Summary collapse
-
#success? ⇒ Boolean
about status code, see sendgrid.com/docs/API_Reference/Web_API_v3/Mail/errors.html.
Instance Method Details
#success? ⇒ Boolean
about status code, see sendgrid.com/docs/API_Reference/Web_API_v3/Mail/errors.html
6 7 8 |
# File 'app/models/sendgrid_notification/sendgrid_client.rb', line 6 def success? status_code && status_code.to_i < 300 end |