Method: Onfido::ErrorProperties1#==

Defined in:
lib/onfido/models/error_properties1.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



90
91
92
93
94
95
# File 'lib/onfido/models/error_properties1.rb', line 90

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      type == o.type &&
      message == o.message
end