Method: Forgejo::NotificationThread#==

Defined in:
lib/forgejo/models/notification_thread.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



137
138
139
140
141
142
143
144
145
146
147
# File 'lib/forgejo/models/notification_thread.rb', line 137

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      id == o.id &&
      pinned == o.pinned &&
      repository == o.repository &&
      subject == o.subject &&
      unread == o.unread &&
      updated_at == o.updated_at &&
      url == o.url
end