Method: Trulioo::Consent#==

Defined in:
lib/trulioo_sdk/models/consent.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



96
97
98
99
100
101
102
# File 'lib/trulioo_sdk/models/consent.rb', line 96

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      name == o.name &&
      text == o.text &&
      url == o.url
end