Class: Vines::Stanza::Iq::Version
- Inherits:
-
Query
- Object
- Vines::Stanza
- Vines::Stanza::Iq
- Query
- Vines::Stanza::Iq::Version
- Defined in:
- lib/vines/stanza/iq/version.rb
Constant Summary collapse
- NS =
NAMESPACES[:version]
Constants inherited from Vines::Stanza::Iq
Constants inherited from Vines::Stanza
Instance Attribute Summary
Attributes inherited from Vines::Stanza
Instance Method Summary collapse
Methods inherited from Vines::Stanza::Iq
Methods inherited from Vines::Stanza
#broadcast, from_node, #initialize, #local?, #local_jid?, #method_missing, register, #route, #router, #send_unavailable, #storage, #to_pubsub_domain?, #unavailable, #validate_from, #validate_to
Constructor Details
This class inherits a constructor from Vines::Stanza
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Vines::Stanza
Instance Method Details
#process ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/vines/stanza/iq/version.rb', line 11 def process return if route_iq || to_pubsub_domain? || !allowed? result = to_result.tap do |node| node << node.document.create_element('query') do |query| query.default_namespace = NS query << node.document.create_element('name', 'Vines') query << node.document.create_element('version', VERSION) end end stream.write(result) end |