Class: Jabber::Dataforms::XDataInstructions

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

Overview

Child of XData, contains the instructions 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

#initialize(instructions = nil) ⇒ XDataInstructions

Returns a new instance of XDataInstructions



130
131
132
133
# File 'lib/xmpp4r/dataforms/x/data.rb', line 130

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

Instance Method Details

#instructionsObject



139
140
141
# File 'lib/xmpp4r/dataforms/x/data.rb', line 139

def instructions
  text
end

#to_sObject



135
136
137
# File 'lib/xmpp4r/dataforms/x/data.rb', line 135

def to_s
  text.to_s
end