Class: Jabber::PubSub::Item
- Inherits:
-
XMPPElement
- Object
- REXML::Element
- XMPPElement
- Jabber::PubSub::Item
- Defined in:
- lib/xmpp4r/pubsub/children/item.rb
Overview
Item One PubSub Item
Direct Known Subclasses
Instance Method Summary collapse
- #id ⇒ Object
- #id=(myid) ⇒ Object
-
#initialize(id = nil) ⇒ Item
constructor
A new instance of Item.
Methods inherited from XMPPElement
class_for_name_xmlns, #clone, force_xmlns, force_xmlns?, import, 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
#initialize(id = nil) ⇒ Item
Returns a new instance of Item.
14 15 16 17 |
# File 'lib/xmpp4r/pubsub/children/item.rb', line 14 def initialize(id=nil) super() attributes['id'] = id end |
Instance Method Details
#id ⇒ Object
18 19 20 |
# File 'lib/xmpp4r/pubsub/children/item.rb', line 18 def id attributes['id'] end |
#id=(myid) ⇒ Object
21 22 23 |
# File 'lib/xmpp4r/pubsub/children/item.rb', line 21 def id=(myid) attributes['id'] = myid end |