Method: PureCloud::ChatMessage#==

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

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



129
130
131
132
133
134
135
136
137
138
139
140
141
# File 'lib/purecloudplatformclientv2/models/chat_message.rb', line 129

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