Module: Warchat::Chat::ChatResponse
- Defined in:
- lib/warchat/chat/chat_response.rb
Instance Method Summary collapse
Instance Method Details
#ack? ⇒ Boolean
9 10 11 |
# File 'lib/warchat/chat/chat_response.rb', line 9 def ack? chat_type == 'message_ack' end |
#chat_type ⇒ Object
17 18 19 |
# File 'lib/warchat/chat/chat_response.rb', line 17 def chat_type self['chatType'] end |
#message? ⇒ Boolean
13 14 15 |
# File 'lib/warchat/chat/chat_response.rb', line 13 def chat_type == 'wow_message' end |
#presence? ⇒ Boolean
5 6 7 |
# File 'lib/warchat/chat/chat_response.rb', line 5 def presence? chat_type == 'wow_presence' end |