Class: Biryani::ConnectionError

Inherits:
Object
  • Object
show all
Defined in:
lib/biryani/connection_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(code, debug) ⇒ ConnectionError

Returns a new instance of ConnectionError.

Parameters:

  • code (Integer)
  • debug (String)


5
6
7
8
# File 'lib/biryani/connection_error.rb', line 5

def initialize(code, debug)
  @code = code
  @debug = debug
end

Instance Method Details

#goaway(last_stream_id) ⇒ Goaway

Parameters:

  • last_stream_id (Integer)

Returns:

  • (Goaway)


13
14
15
# File 'lib/biryani/connection_error.rb', line 13

def goaway(last_stream_id)
  Frame::Goaway.new(last_stream_id, @code, @debug)
end