Method: EilamTest::UserCreate#==

Defined in:
lib/eilam_test/models/user_create.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
# File 'lib/eilam_test/models/user_create.rb', line 247

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      date_joined == o.date_joined &&
      email == o.email &&
      first_name == o.first_name &&
      is_active == o.is_active &&
      is_staff == o.is_staff &&
      is_superuser == o.is_superuser &&
       == o. &&
      last_name == o.last_name &&
      password == o.password &&
      username == o.username &&
      uuid == o.uuid
end