Class: Onion::Circuit
- Inherits:
-
Object
- Object
- Onion::Circuit
- Defined in:
- lib/onion/elements/circuit.rb
Overview
Onion::Circuit is an object representing a Tor circuit.
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#routers ⇒ Object
readonly
Returns the value of attribute routers.
Instance Method Summary collapse
-
#initialize(id, routers) ⇒ Circuit
constructor
A new instance of Circuit.
Constructor Details
#initialize(id, routers) ⇒ Circuit
Returns a new instance of Circuit.
6 7 8 9 |
# File 'lib/onion/elements/circuit.rb', line 6 def initialize(id, routers) @id = id @routers = routers end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/onion/elements/circuit.rb', line 4 def id @id end |
#routers ⇒ Object (readonly)
Returns the value of attribute routers.
4 5 6 |
# File 'lib/onion/elements/circuit.rb', line 4 def routers @routers end |