Class: Dizby::SecureProtocol::ResponseTunnel
- Inherits:
-
DirectTunnel
- Object
- Delegator
- DirectTunnel
- Dizby::SecureProtocol::ResponseTunnel
- Defined in:
- lib/dizby/protocols/secure.rb
Instance Method Summary collapse
-
#initialize(server, tunnel) ⇒ ResponseTunnel
constructor
A new instance of ResponseTunnel.
-
#uri
overload the uri of the server.
Methods inherited from DirectTunnel
Methods inherited from Delegator
#__undelegated_get__, #__undelegated_set__, #instance_variable_get, #instance_variable_set, #method_missing
Constructor Details
#initialize(server, tunnel) ⇒ ResponseTunnel
Returns a new instance of ResponseTunnel.
81 82 83 84 85 |
# File 'lib/dizby/protocols/secure.rb', line 81 def initialize(server, tunnel) super(server, tunnel) @remote_port = tunnel.remote_port end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Dizby::Delegator
Instance Method Details
#uri
overload the uri of the server
87 88 89 90 |
# File 'lib/dizby/protocols/secure.rb', line 87 def uri # overload the uri of the server # we use the drb protocol for the rebound connection "drb://localhost:#{@remote_port}" end |