Class: Vines::Stream::Server::Outbound::AuthRestart
- Inherits:
-
Vines::Stream::State
- Object
- Vines::Stream::State
- Vines::Stream::Server::Outbound::AuthRestart
- Defined in:
- lib/vines/stream/server/outbound/auth_restart.rb
Constant Summary
Constants inherited from Vines::Stream::State
Vines::Stream::State::BODY, Vines::Stream::State::STREAM
Instance Attribute Summary
Attributes inherited from Vines::Stream::State
Instance Method Summary collapse
-
#initialize(stream, success = Auth) ⇒ AuthRestart
constructor
A new instance of AuthRestart.
- #node(node) ⇒ Object
Methods inherited from Vines::Stream::State
Methods included from Log
Constructor Details
#initialize(stream, success = Auth) ⇒ AuthRestart
Returns a new instance of AuthRestart.
8 9 10 |
# File 'lib/vines/stream/server/outbound/auth_restart.rb', line 8 def initialize(stream, success=Auth) super end |
Instance Method Details
#node(node) ⇒ Object
12 13 14 15 |
# File 'lib/vines/stream/server/outbound/auth_restart.rb', line 12 def node(node) raise StreamErrors::NotAuthorized unless stream?(node) advance end |