Method: Wallee::User#==

Defined in:
lib/wallee-ruby-sdk/models/user.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



113
114
115
116
117
118
119
120
121
122
# File 'lib/wallee-ruby-sdk/models/user.rb', line 113

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      id == o.id &&
      planned_purge_date == o.planned_purge_date &&
      scope == o.scope &&
      state == o.state &&
      user_type == o.user_type &&
      version == o.version
end