Method: Onfido::Extraction#==

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

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



99
100
101
102
103
104
105
# File 'lib/onfido/models/extraction.rb', line 99

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      document_id == o.document_id &&
      document_classification == o.document_classification &&
      extracted_data == o.extracted_data
end