class Vines::Stream::Http::Auth
Public Class Methods
new(stream, success=BindRestart)
click to toggle source
Calls superclass method
Vines::Stream::Client::Auth::new
# File lib/vines/stream/http/auth.rb, line 7 def initialize(stream, success=BindRestart) super end
Public Instance Methods
node(node)
click to toggle source
Calls superclass method
Vines::Stream::Client::Auth#node
# File lib/vines/stream/http/auth.rb, line 11 def node(node) unless stream.valid_session?(node['sid']) && body?(node) && node['rid'] raise StreamErrors::NotAuthorized end nodes = stream.parse_body(node) raise StreamErrors::NotAuthorized unless nodes.size == 1 super(nodes.first) end