Method: WordsRubySdk::ProtectionResponse#==

Defined in:
lib/words_ruby_sdk/models/protection_response.rb

#==(other) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



113
114
115
116
117
118
119
120
# File 'lib/words_ruby_sdk/models/protection_response.rb', line 113

def ==(other)
  return true if self.equal?(other)
  self.class == other.class &&
      code == other.code &&
      status == other.status &&
      document_link == other.document_link &&
      protection_result == other.protection_result
end