Class: Onion::Circuit

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#routersObject (readonly)

Returns the value of attribute routers.



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

def routers
  @routers
end