Class: Krump::SshTunnelInfo
- Inherits:
-
Object
- Object
- Krump::SshTunnelInfo
- Defined in:
- lib/krump/ssh_tunnel_info.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#local_port ⇒ Object
Returns the value of attribute local_port.
-
#port ⇒ Object
Returns the value of attribute port.
Instance Method Summary collapse
-
#initialize(host, port, local_port) ⇒ SshTunnelInfo
constructor
A new instance of SshTunnelInfo.
Constructor Details
#initialize(host, port, local_port) ⇒ SshTunnelInfo
Returns a new instance of SshTunnelInfo.
5 6 7 8 9 |
# File 'lib/krump/ssh_tunnel_info.rb', line 5 def initialize(host, port, local_port) @host = host @port = port.to_i @local_port = local_port.to_i end |
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
3 4 5 |
# File 'lib/krump/ssh_tunnel_info.rb', line 3 def host @host end |
#local_port ⇒ Object
Returns the value of attribute local_port.
3 4 5 |
# File 'lib/krump/ssh_tunnel_info.rb', line 3 def local_port @local_port end |
#port ⇒ Object
Returns the value of attribute port.
3 4 5 |
# File 'lib/krump/ssh_tunnel_info.rb', line 3 def port @port end |