Method: PureCloud::ChatMessage#==

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

#==(o) ⇒ Object

Check equality by comparing each attribute.



126
127
128
129
130
131
132
133
134
135
136
137
138
# File 'lib/purecloud/models/chat_message.rb', line 126

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      body == o.body &&
      id == o.id &&
      to == o.to &&
      from == o.from &&
      utc == o.utc &&
      chat == o.chat &&
      message == o.message &&
      type == o.type &&
      user == o.user
end