Method: Notifo::SystemUserDto#==

Defined in:
lib/notifo/models/system_user_dto.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



132
133
134
135
136
137
138
139
140
# File 'lib/notifo/models/system_user_dto.rb', line 132

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      id == o.id &&
      email == o.email &&
      is_locked == o.is_locked &&
      roles == o.roles &&
      can_update == o.can_update
end