Class: Easemob::ChatMessage

Inherits:
BaseMessage show all
Defined in:
lib/easemob/message/chat_message.rb

Instance Attribute Summary

Attributes inherited from BaseMessage

#action, #application, #application_name, #body, #body_hash, #code, #count, #cursor, #data, #duration, #entities, #error, #error_description, #exception, #organization, #params, #raw_http_response, #timestamp, #uri

Instance Method Summary collapse

Methods inherited from BaseMessage

#initialize, #inspect, #to_s

Constructor Details

This class inherits a constructor from Easemob::BaseMessage

Instance Method Details

#all_success?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/easemob/message/chat_message.rb', line 5

def all_success?
  @data.values.all? { |ar| ar == 'success' }
end