Class: Jabber::PubSub::Item

Inherits:
XMPPElement show all
Defined in:
lib/xmpp4r/pubsub/children/item.rb

Overview

Item One PubSub Item

Direct Known Subclasses

EventItem

Instance Method Summary collapse

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

#idObject


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