Class: Xrc::Elements::Session

Inherits:
REXML::Element
  • Object
show all
Defined in:
lib/xrc/elements/session.rb

Instance Method Summary collapse

Constructor Details

#initializeSession

Returns a new instance of Session.



4
5
6
7
8
9
10
# File 'lib/xrc/elements/session.rb', line 4

def initialize
  super("iq")
  session = REXML::Element.new("session")
  session.add_namespace(Namespaces::SESSION)
  add_attributes("type" => "set")
  add(session)
end