Module: Warchat::Chat::ChatResponse

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

Instance Method Summary collapse

Instance Method Details

#ack?Boolean

Returns:

  • (Boolean)


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

def ack?
  chat_type == 'message_ack'
end

#chat_typeObject



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

def chat_type
  self['chatType']
end

#message?Boolean

Returns:

  • (Boolean)


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

def message? 
  chat_type == 'wow_message'
end

#presence?Boolean

Returns:

  • (Boolean)


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

def presence?
  chat_type == 'wow_presence'
end