Sha256: aa457a928976b8897ead440068d5f1fbc17626ba02abc74e7f67ee866f722739
Contents?: true
Size: 596 Bytes
Versions: 1
Compression:
Stored size: 596 Bytes
Contents
module Blather class Stanza ## # Base Iq stanza class Iq < Stanza register :iq def self.import(node) raise "Import missmatch #{[node.element_name, self.name].inspect}" if node.element_name != self.name.to_s klass = nil node.each { |e| break if klass = class_from_registration(e.element_name, e.xmlns) } (klass || self).new(node['type']).inherit(node) end def initialize(type = nil, to = nil, id = nil) super :iq self.xmlns = nil self.type = type || :get self.to = to self.id = id if id end end end #Stanza end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blather-0.2.1 | lib/blather/stanza/iq.rb |