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

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



239
240
241
# File 'lib/agent_xmpp/xmpp/x_data.rb', line 239

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

#fieldsObject

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



234
235
236
# File 'lib/agent_xmpp/xmpp/x_data.rb', line 234

def fields
  elements.to_a('field')
end