Class: Vines::Stream::Server::Outbound::FinalRestart

Inherits:
Vines::Stream::State show all
Defined in:
lib/vines/stream/server/outbound/final_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

#stream

Instance Method Summary collapse

Methods inherited from Vines::Stream::State

#==, #eql?, #hash

Methods included from Log

#log

Constructor Details

#initialize(stream, success = FinalFeatures) ⇒ FinalRestart

Returns a new instance of FinalRestart.



8
9
10
# File 'lib/vines/stream/server/outbound/final_restart.rb', line 8

def initialize(stream, success=FinalFeatures)
  super
end

Instance Method Details

#node(node) ⇒ Object



12
13
14
15
# File 'lib/vines/stream/server/outbound/final_restart.rb', line 12

def node(node)
  raise StreamErrors::NotAuthorized unless stream?(node)
  advance
end