Class: Sendgrid::API::Entities::ResponseRemove

Inherits:
Entity
  • Object
show all
Defined in:
lib/sendgrid/api/entities/response_remove.rb

Instance Attribute Summary

Attributes inherited from Entity

#attributes

Instance Method Summary collapse

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 removals were made

Returns:

  • (Boolean)


11
12
13
# File 'lib/sendgrid/api/entities/response_remove.rb', line 11

def any?
  removed > 0
end

#none?Boolean

Return true if no removals were made

Returns:

  • (Boolean)


16
17
18
# File 'lib/sendgrid/api/entities/response_remove.rb', line 16

def none?
  !any?
end