Class: Tunnel

Inherits:
Object
  • Object
show all
Defined in:
lib/netutils/tunnel.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(src, dst) ⇒ Tunnel

Returns a new instance of Tunnel.



4
5
6
7
# File 'lib/netutils/tunnel.rb', line 4

def initialize(src, dst)
	@src = src
	@dst = dst
end

Instance Attribute Details

#dstObject (readonly)

Returns the value of attribute dst.



2
3
4
# File 'lib/netutils/tunnel.rb', line 2

def dst
  @dst
end

#srcObject (readonly)

Returns the value of attribute src.



2
3
4
# File 'lib/netutils/tunnel.rb', line 2

def src
  @src
end