Method: ElasticEmail::Suppression#==

Defined in:
lib/ElasticEmail/models/suppression.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



113
114
115
116
117
118
119
120
# File 'lib/ElasticEmail/models/suppression.rb', line 113

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      email == o.email &&
      friendly_error_message == o.friendly_error_message &&
      error_code == o.error_code &&
      date_updated == o.date_updated
end