Class: Jabber::Dataforms::XDataTitle

Inherits:
XMPPElement show all
Defined in:
lib/gems/xmpp4r-0.4/lib/xmpp4r/dataforms/x/data.rb

Overview

Child of XData, contains the title of this Data Form

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, #first_element, #first_element_text, #import, import, #replace_element_text, #typed_add

Constructor Details

#initialize(title = nil) ⇒ XDataTitle

Returns a new instance of XDataTitle.



112
113
114
115
# File 'lib/gems/xmpp4r-0.4/lib/xmpp4r/dataforms/x/data.rb', line 112

def initialize(title=nil)
  super()
  add_text(title)
end

Instance Method Details

#titleObject



120
121
122
# File 'lib/gems/xmpp4r-0.4/lib/xmpp4r/dataforms/x/data.rb', line 120

def title
  text
end

#to_sObject



117
118
119
# File 'lib/gems/xmpp4r-0.4/lib/xmpp4r/dataforms/x/data.rb', line 117

def to_s
  text.to_s
end