Class: Blather::Stanza::DiscoItems
- Inherits:
-
Disco
- Object
- Nokogiri::XML::Node
- XMPPNode
- Blather::Stanza
- Iq
- Iq::Query
- Disco
- Blather::Stanza::DiscoItems
- Defined in:
- lib/blather/stanza/disco/disco_items.rb
Defined Under Namespace
Classes: Item
Constant Summary
Constants inherited from Iq
Constants inherited from XMPPNode
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Iq::Query
#inherit, #query, #reply, #reply!
Methods inherited from Iq
Methods inherited from Blather::Stanza
#as_error, attribute_helpers_for, #from, handler_list, next_id, register, #reply, #reply!, #to
Methods inherited from XMPPNode
attribute_accessor, attribute_reader, attribute_writer, class_from_registration, content_attr_accessor, content_attr_reader, content_attr_writer, #content_from, import, #inherit, #inherit_attrs, #namespace=, #namespace_href, #nokogiri_namespace=, register, #remove_child, #remove_children, #set_content_for, #to_stanza
Methods inherited from Nokogiri::XML::Node
#[]=, #attr_set, #find_first, #nokogiri_xpath, #xpath
Class Method Details
Instance Method Details
#items ⇒ Object
14 15 16 |
# File 'lib/blather/stanza/disco/disco_items.rb', line 14 def items query.find('//query_ns:item', :query_ns => self.class.registered_ns).map { |i| Item.new i } end |
#node ⇒ Object
22 23 24 |
# File 'lib/blather/stanza/disco/disco_items.rb', line 22 def node query[:node] end |
#node=(node) ⇒ Object
18 19 20 |
# File 'lib/blather/stanza/disco/disco_items.rb', line 18 def node=(node) query[:node] = node end |