Class: Xrc::Elements::Stream
- Inherits:
-
Object
- Object
- Xrc::Elements::Stream
- Defined in:
- lib/xrc/elements/stream.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options) ⇒ Stream
constructor
A new instance of Stream.
- #to_s ⇒ Object
Constructor Details
#initialize(options) ⇒ Stream
Returns a new instance of Stream.
6 7 8 |
# File 'lib/xrc/elements/stream.rb', line 6 def initialize() @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/xrc/elements/stream.rb', line 4 def @options end |
Instance Method Details
#to_s ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/xrc/elements/stream.rb', line 10 def to_s %W[ <stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="#{[:domain]}" xml:lang="en" version="1.0"> ].join(" ") end |