Class: Jabber::FeatureNegotiation::IqFeature
- Inherits:
-
XMPPElement
- Object
- REXML::Element
- XMPPElement
- Jabber::FeatureNegotiation::IqFeature
- Defined in:
- lib/xmpp4r/feature_negotiation/iq/feature.rb
Overview
Feature negotiation, can appear as direct child to Iq or as child of IqSi
Instance Method Summary collapse
-
#x ⇒ Object
First <x/> child with xmlns=‘jabber:x:data’.
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, #typed_add, #xml_lang, #xml_lang=
Methods inherited from REXML::Element
#==, #delete_elements, #each_elements, #first_element, #first_element_content, #first_element_text, #import, import, #replace_element_content, #replace_element_text, #typed_add
Constructor Details
This class inherits a constructor from Jabber::XMPPElement
Instance Method Details
#x ⇒ Object
First <x/> child with xmlns=‘jabber:x:data’
19 20 21 22 23 24 25 |
# File 'lib/xmpp4r/feature_negotiation/iq/feature.rb', line 19 def x res = nil each_element('x') { |e| res = e if e.namespace == 'jabber:x:data' } res end |