Class: Onion::Stream

Inherits:
Object
  • Object
show all
Defined in:
lib/onion/elements/stream.rb

Overview

Onion::Circuit is an object representing a Tor stream.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(stream_id, circuit_id) ⇒ Stream

Returns a new instance of Stream.



6
7
8
9
# File 'lib/onion/elements/stream.rb', line 6

def initialize(stream_id, circuit_id)
  @stream_id  = stream_id         
  @circuit_id = circuit_id 
end

Instance Attribute Details

#circuit_idObject (readonly)

Returns the value of attribute circuit_id.



4
5
6
# File 'lib/onion/elements/stream.rb', line 4

def circuit_id
  @circuit_id
end

#stream_idObject (readonly)

Returns the value of attribute stream_id.



4
5
6
# File 'lib/onion/elements/stream.rb', line 4

def stream_id
  @stream_id
end