Class: AgentXmpp::Xmpp::XDataInstructions

Inherits:
Element show all
Defined in:
lib/agent_xmpp/xmpp/x_data.rb

Overview


Instance Method Summary collapse

Methods inherited from Element

#<<, class_for_name_xmlns, #clone, import, name_xmlns, name_xmlns_for_class, #parent=, #set_xml_lang, #typed_add, #xml_lang, #xml_lang=, xmpp_attribute, xmpp_child

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

.….….….….….….….….….….….….….….….….….….….….….….….….….



151
152
153
154
# File 'lib/agent_xmpp/xmpp/x_data.rb', line 151

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

Instance Method Details

#instructionsObject

.….….….….….….….….….….….….….….….….….….….….….….….….….



162
163
164
# File 'lib/agent_xmpp/xmpp/x_data.rb', line 162

def instructions
  text
end

#to_sObject

.….….….….….….….….….….….….….….….….….….….….….….….….….



157
158
159
# File 'lib/agent_xmpp/xmpp/x_data.rb', line 157

def to_s
  text.to_s
end