Class: Pipe2me::Tunnel::Commands::Spec
- Inherits:
-
Struct
- Object
- Struct
- Pipe2me::Tunnel::Commands::Spec
- Defined in:
- lib/pipe2me/tunnel/commands.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#local_port ⇒ Object
Returns the value of attribute local_port.
-
#protocol ⇒ Object
Returns the value of attribute protocol.
-
#remote_port ⇒ Object
Returns the value of attribute remote_port.
Instance Method Summary collapse
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host
10 11 12 |
# File 'lib/pipe2me/tunnel/commands.rb', line 10 def host @host end |
#local_port ⇒ Object
Returns the value of attribute local_port
10 11 12 |
# File 'lib/pipe2me/tunnel/commands.rb', line 10 def local_port @local_port end |
#protocol ⇒ Object
Returns the value of attribute protocol
10 11 12 |
# File 'lib/pipe2me/tunnel/commands.rb', line 10 def protocol @protocol end |
#remote_port ⇒ Object
Returns the value of attribute remote_port
10 11 12 |
# File 'lib/pipe2me/tunnel/commands.rb', line 10 def remote_port @remote_port end |
Instance Method Details
#inspect ⇒ Object
11 12 13 |
# File 'lib/pipe2me/tunnel/commands.rb', line 11 def inspect "#{protocol}: #{host}:#{remote_port} <= localhost:#{local_port}" end |