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