Class: AgentXmpp::Xmpp::XDataReported

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, #initialize, 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

This class inherits a constructor from AgentXmpp::Xmpp::Element

Instance Method Details

#add_field(var) ⇒ Object

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



327
328
329
# File 'lib/agent_xmpp/xmpp/x_data.rb', line 327

def add_field(var)
  self << XDataField.new(var)
end

#fieldsObject

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



322
323
324
# File 'lib/agent_xmpp/xmpp/x_data.rb', line 322

def fields
  elements.to_a('field')
end