Class: Blather::Stanza::Disco
- Inherits:
-
Iq::Query
- Object
- Niceogiri::XML::Node
- XMPPNode
- Blather::Stanza
- Iq
- Iq::Query
- Blather::Stanza::Disco
- Defined in:
- lib/blather/stanza/disco.rb
Overview
# Disco Base class
Use Blather::Stanza::DiscoInfo or Blather::Stanza::DiscoItems
Direct Known Subclasses
Constant Summary
Constants inherited from Iq
Constants inherited from XMPPNode
Instance Attribute Summary
Attributes inherited from Blather::Stanza
Instance Method Summary collapse
-
#eql?(o, *fields) ⇒ true, false
Compare two Disco objects by name, type and category.
-
#node ⇒ String
Get the name of the node.
-
#node=(node) ⇒ Object
Set the name of the node.
Methods inherited from Iq::Query
Methods inherited from Iq
#error?, #get?, import, new, #reply!, #result?, #set?, #type=
Methods inherited from Blather::Stanza
#as_error, #error?, #from, #from=, handler_list, #id, #id=, #initialize, next_id, register, #reply, #reply!, #to, #to=, #type, #type=
Methods inherited from XMPPNode
class_from_registration, #decorate, decorator_modules, import, new, parse, register, #to_stanza
Constructor Details
This class inherits a constructor from Blather::Stanza
Instance Method Details
#eql?(o, *fields) ⇒ true, false
Compare two Disco objects by name, type and category
26 27 28 |
# File 'lib/blather/stanza/disco.rb', line 26 def eql?(o, *fields) super o, *(fields + [:node]) end |
#node ⇒ String
Get the name of the node
12 13 14 |
# File 'lib/blather/stanza/disco.rb', line 12 def node query[:node] end |
#node=(node) ⇒ Object
Set the name of the node
19 20 21 |
# File 'lib/blather/stanza/disco.rb', line 19 def node=(node) query[:node] = node end |