Method: Weblate::PatchedNotification#==

Defined in:
lib/weblate/models/patched_notification.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



144
145
146
147
148
149
150
151
152
153
# File 'lib/weblate/models/patched_notification.rb', line 144

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      notification == o.notification &&
      id == o.id &&
      scope == o.scope &&
      frequency == o.frequency &&
      project == o.project &&
      component == o.component
end