Class: Jabber::Dataforms::XDataTitle

Inherits:
REXML::Element 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 REXML::Element

#delete_elements, #first_element, #first_element_text, import, #import, #replace_element_text, #typed_add

Constructor Details

#initializeXDataTitle

Returns a new instance of XDataTitle


80
81
82
# File 'lib/xmpp4r/dataforms/x/data.rb', line 80

def initialize
  super('title')
end

Instance Method Details

#titleObject


86
87
88
# File 'lib/xmpp4r/dataforms/x/data.rb', line 86

def title
  text
end

#to_sObject


83
84
85
# File 'lib/xmpp4r/dataforms/x/data.rb', line 83

def to_s
  text.to_s
end