Class: Jabber::Dataforms::XDataTitle

Inherits:
XMPPElement show all
Defined in:
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, #each_elements, #first_element, #first_element_content, #first_element_text, #import, import, #replace_element_content, #replace_element_text, #typed_add

Constructor Details

- (XDataTitle) initialize(title = nil)

Returns a new instance of XDataTitle



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

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

Instance Method Details

- (Object) title



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

def title
  text
end

- (Object) to_s



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

def to_s
  text.to_s
end