Module: Warchat::Chat::ChatResponse

Defined in:
lib/warchat/chat/chat_response.rb

Instance Method Summary collapse

Instance Method Details

#ack?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/warchat/chat/chat_response.rb', line 9

def ack?
  chat_type == 'message_ack'
end

#chat_typeObject



17
18
19
# File 'lib/warchat/chat/chat_response.rb', line 17

def chat_type
  self['chatType']
end

#message?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/warchat/chat/chat_response.rb', line 13

def message? 
  chat_type == 'wow_message'
end

#presence?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/warchat/chat/chat_response.rb', line 5

def presence?
  chat_type == 'wow_presence'
end