Method: Jabber::Message#type

Defined in:
lib/vendor/xmpp4r/lib/xmpp4r/message.rb

#typeObject

Get the type of the Message stanza

The following Symbols are allowed:

  • :chat

  • :error

  • :groupchat

  • :headline

  • :normal

result
Symbol

or nil



43
44
45
46
47
48
49
50
51
52
# File 'lib/vendor/xmpp4r/lib/xmpp4r/message.rb', line 43

def type
  case super
    when 'chat' then :chat
    when 'error' then :error
    when 'groupchat' then :groupchat
    when 'headline' then :headline
    when 'normal' then :normal
    else nil
  end
end