Class: AgentXmpp::Xmpp::DiscoItem
- Inherits:
-
Element
- Object
- REXML::Element
- Element
- AgentXmpp::Xmpp::DiscoItem
- Defined in:
- lib/agent_xmpp/xmpp/iq_disco.rb
Overview
Instance Method Summary collapse
- #iname ⇒ Object
-
#iname=(val) ⇒ Object
.….….….….….….….….….….….….….….….….….….….….….….….….….….
-
#initialize(jid = nil, iname = nil, node = nil) ⇒ DiscoItem
constructor
.….….….….….….….….….….….….….….….….….….….….….….….….….….
-
#jid ⇒ Object
.….….….….….….….….….….….….….….….….….….….….….….….….….….
-
#jid=(val) ⇒ Object
.….….….….….….….….….….….….….….….….….….….….….….….….….….
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(jid = nil, iname = nil, node = nil) ⇒ DiscoItem
.….….….….….….….….….….….….….….….….….….….….….….….….….….
130 131 132 133 134 135 |
# File 'lib/agent_xmpp/xmpp/iq_disco.rb', line 130 def initialize(jid=nil, iname=nil, node=nil) super() self.jid = jid if jid self.iname = iname if iname self.node = node if node end |
Instance Method Details
#iname ⇒ Object
147 148 149 |
# File 'lib/agent_xmpp/xmpp/iq_disco.rb', line 147 def iname attributes['name'] end |
#iname=(val) ⇒ Object
.….….….….….….….….….….….….….….….….….….….….….….….….….….
152 153 154 |
# File 'lib/agent_xmpp/xmpp/iq_disco.rb', line 152 def iname=(val) attributes['name'] = val end |
#jid ⇒ Object
.….….….….….….….….….….….….….….….….….….….….….….….….….….
138 139 140 |
# File 'lib/agent_xmpp/xmpp/iq_disco.rb', line 138 def jid Jid.new(attributes['jid']) end |
#jid=(val) ⇒ Object
.….….….….….….….….….….….….….….….….….….….….….….….….….….
143 144 145 |
# File 'lib/agent_xmpp/xmpp/iq_disco.rb', line 143 def jid=(val) attributes['jid'] = val.to_s end |