Class: Pipe2me::Tunnel::Commands::Spec

Inherits:
Struct
  • Object
show all
Defined in:
lib/pipe2me/tunnel/commands.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hostObject

Returns the value of attribute host

Returns:

  • (Object)

    the current value of host



10
11
12
# File 'lib/pipe2me/tunnel/commands.rb', line 10

def host
  @host
end

#local_portObject

Returns the value of attribute local_port

Returns:

  • (Object)

    the current value of local_port



10
11
12
# File 'lib/pipe2me/tunnel/commands.rb', line 10

def local_port
  @local_port
end

#protocolObject

Returns the value of attribute protocol

Returns:

  • (Object)

    the current value of protocol



10
11
12
# File 'lib/pipe2me/tunnel/commands.rb', line 10

def protocol
  @protocol
end

#remote_portObject

Returns the value of attribute remote_port

Returns:

  • (Object)

    the current value of remote_port



10
11
12
# File 'lib/pipe2me/tunnel/commands.rb', line 10

def remote_port
  @remote_port
end

Instance Method Details

#inspectObject



11
12
13
# File 'lib/pipe2me/tunnel/commands.rb', line 11

def inspect
  "#{protocol}: #{host}:#{remote_port} <= localhost:#{local_port}"
end