Sha256: 582ff684b7873f6f5c4d0e97afbda55ebeee8189f6a4f0f70878fe41a789ef87
Contents?: true
Size: 635 Bytes
Versions: 3
Compression:
Stored size: 635 Bytes
Contents
# encoding: UTF-8 module Vines class Stanza class Iq class Version < Query NS = NAMESPACES[:version] register "/iq[@id and @type='get']/ns:query", 'ns' => NS def process return if route_iq 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 end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vines-0.3.2 | lib/vines/stanza/iq/version.rb |
vines-0.3.1 | lib/vines/stanza/iq/version.rb |
vines-0.3.0 | lib/vines/stanza/iq/version.rb |