Class: Onion::Stream
- Inherits:
-
Object
- Object
- Onion::Stream
- Defined in:
- lib/onion/elements/stream.rb
Overview
Onion::Circuit is an object representing a Tor stream.
Instance Attribute Summary collapse
-
#circuit_id ⇒ Object
readonly
Returns the value of attribute circuit_id.
-
#stream_id ⇒ Object
readonly
Returns the value of attribute stream_id.
Instance Method Summary collapse
-
#initialize(stream_id, circuit_id) ⇒ Stream
constructor
A new instance of Stream.
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_id ⇒ Object (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_id ⇒ Object (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 |