Class: Jabber::PubSub::Retract
- Inherits:
-
XMPPElement
- Object
- REXML::Element
- XMPPElement
- Jabber::PubSub::Retract
- Defined in:
- lib/xmpp4r/pubsub/children/retract.rb
Overview
Retract
A <retract> XMPP element, see example 103 in xmpp.org/extensions/xep-0060.html#publisher-delete
Instance Method Summary collapse
-
#items ⇒ Object
Get <item/> children.
-
#node ⇒ Object
get the node for this retraction.
-
#node=(s) ⇒ Object
set the node for this retraction.
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
#items ⇒ Object
Get <item/> children
31 32 33 34 35 36 37 |
# File 'lib/xmpp4r/pubsub/children/retract.rb', line 31 def items res = [] each_element('item') { |item| res << item } res end |
#node ⇒ Object
get the node for this retraction
19 20 21 |
# File 'lib/xmpp4r/pubsub/children/retract.rb', line 19 def node attributes['node'] end |
#node=(s) ⇒ Object
set the node for this retraction
25 26 27 |
# File 'lib/xmpp4r/pubsub/children/retract.rb', line 25 def node=(s) attributes['node'] = s end |