lib/blather/stream/features/session.rb in blather-0.4.16 vs lib/blather/stream/features/session.rb in blather-0.5.0
- old
+ new
@@ -1,9 +1,10 @@
-module Blather # :nodoc:
-class Stream # :nodoc:
+module Blather
+class Stream
- class Session < Features # :nodoc:
+ # @private
+ class Session < Features
SESSION_NS = 'urn:ietf:params:xml:ns:xmpp-session'.freeze
register SESSION_NS
def initialize(stream, succeed, fail)
super
@@ -20,10 +21,10 @@
end
private
def check_response
if @node[:type] == 'result'
- succeed!
+ succeed!
else
fail!(StanzaError.import(@node))
end
end