Class: Jabber::RPC::IqQueryRPC

Inherits:
IqQuery show all
Defined in:
lib/gems/xmpp4r-0.4/lib/xmpp4r/rpc/iq/rpc.rb

Constant Summary collapse

NS_RPC =
'jabber:iq:rpc'

Instance Method Summary collapse

Methods inherited from XMPPElement

class_for_name_xmlns, #clone, force_xmlns, force_xmlns?, import, #initialize, name_xmlns, name_xmlns_for_class, #parent=, #set_xml_lang, #xml_lang, #xml_lang=

Methods inherited from REXML::Element

#==, #delete_elements, #first_element, #first_element_text, #import, import, #replace_element_text

Constructor Details

This class inherits a constructor from Jabber::XMPPElement

Instance Method Details

#typed_add(e) ⇒ Object

TODO: Is typed_add with a String right here?



14
15
16
17
18
19
20
# File 'lib/gems/xmpp4r-0.4/lib/xmpp4r/rpc/iq/rpc.rb', line 14

def typed_add(e)
  if e.kind_of? String
    typed_add(REXML::Document.new(e).root)
  else
    super
  end
end