Class: Xrc::Elements::Session
- Inherits:
-
REXML::Element
- Object
- REXML::Element
- Xrc::Elements::Session
- Defined in:
- lib/xrc/elements/session.rb
Instance Method Summary collapse
-
#initialize ⇒ Session
constructor
A new instance of Session.
Constructor Details
#initialize ⇒ Session
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 |