Method: PureCloud::EmailMessage#==

Defined in:
lib/purecloud/models/email_message.rb

#==(o) ⇒ Object

Check equality by comparing each attribute.



172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# File 'lib/purecloud/models/email_message.rb', line 172

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      id == o.id &&
      name == o.name &&
      to == o.to &&
      cc == o.cc &&
      bcc == o.bcc &&
      from == o.from &&
      subject == o.subject &&
      attachments == o.attachments &&
      text_body == o.text_body &&
      html_body == o.html_body &&
      time == o.time &&
      self_uri == o.self_uri
end