Class: AgentXmpp::Xmpp::DiscoIdentity

Inherits:
Element show all
Defined in:
lib/agent_xmpp/xmpp/iq_disco.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(category = nil, iname = nil, type = nil) ⇒ DiscoIdentity

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



166
167
168
169
170
171
# File 'lib/agent_xmpp/xmpp/iq_disco.rb', line 166

def initialize(category=nil, iname=nil, type=nil)
  super()
  self.category = category if category
  self.iname = iname if iname
  self.type = type if type
end

Instance Method Details

#inameObject



173
174
175
# File 'lib/agent_xmpp/xmpp/iq_disco.rb', line 173

def iname
  attributes['name']
end

#iname=(val) ⇒ Object

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



178
179
180
# File 'lib/agent_xmpp/xmpp/iq_disco.rb', line 178

def iname=(val)
  attributes['name'] = val
end