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=, #typed_add

Methods inherited from REXML::Element

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

Constructor Details

#initialize(instructions = nil) ⇒ XDataInstructions

Returns a new instance of XDataInstructions.



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

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

Instance Method Details

#instructionsObject



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

def instructions
  text
end

#to_sObject



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

def to_s
  text.to_s
end