Class: Tunnel
- Inherits:
-
Object
- Object
- Tunnel
- Defined in:
- lib/netutils/tunnel.rb
Instance Attribute Summary collapse
-
#dst ⇒ Object
readonly
Returns the value of attribute dst.
-
#src ⇒ Object
readonly
Returns the value of attribute src.
Instance Method Summary collapse
-
#initialize(src, dst) ⇒ Tunnel
constructor
A new instance of Tunnel.
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
#dst ⇒ Object (readonly)
Returns the value of attribute dst.
2 3 4 |
# File 'lib/netutils/tunnel.rb', line 2 def dst @dst end |
#src ⇒ Object (readonly)
Returns the value of attribute src.
2 3 4 |
# File 'lib/netutils/tunnel.rb', line 2 def src @src end |