Class: Sendgrid::API::Entities::ResponseInsert
- Defined in:
- lib/sendgrid/api/entities/response_insert.rb
Instance Attribute Summary
Attributes inherited from Entity
Instance Method Summary collapse
-
#any? ⇒ Boolean
Return true if one or more inserts were made.
-
#none? ⇒ Boolean
Return true if no inserts were made.
Methods inherited from Entity
#as_json, attribute, attributes, clear_attributes, from_response, #initialize, #method_missing, #respond_to?, #to_json
Constructor Details
This class inherits a constructor from Sendgrid::API::Entities::Entity
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Sendgrid::API::Entities::Entity
Instance Method Details
#any? ⇒ Boolean
Return true if one or more inserts were made
11 12 13 |
# File 'lib/sendgrid/api/entities/response_insert.rb', line 11 def any? inserted > 0 end |
#none? ⇒ Boolean
Return true if no inserts were made
16 17 18 |
# File 'lib/sendgrid/api/entities/response_insert.rb', line 16 def none? !any? end |