Class: XMPPSimple::Bind

Inherits:
Iq show all
Defined in:
lib/xmpp_simple/stanzas/bind.rb

Constant Summary

Constants inherited from Iq

Iq::NAME

Class Method Summary collapse

Class Method Details

.createObject



3
4
5
6
7
8
# File 'lib/xmpp_simple/stanzas/bind.rb', line 3

def self.create
  super()
  bind = Nokogiri::XML::Node.new('bind', @node.document)
  bind.add_namespace(nil, 'urn:ietf:params:xml:ns:xmpp-bind')
  @node << bind
end