Class: Coronet::RemoteEndpoint
- Inherits:
-
Object
- Object
- Coronet::RemoteEndpoint
- Defined in:
- lib/coronet/remote_endpoint.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#port ⇒ Object
Returns the value of attribute port.
-
#protocol ⇒ Object
Returns the value of attribute protocol.
Instance Method Summary collapse
-
#initialize(host, port, protocol) ⇒ RemoteEndpoint
constructor
A new instance of RemoteEndpoint.
- #transmit(request) ⇒ Object
Constructor Details
#initialize(host, port, protocol) ⇒ RemoteEndpoint
Returns a new instance of RemoteEndpoint.
6 7 8 9 10 |
# File 'lib/coronet/remote_endpoint.rb', line 6 def initialize(host, port, protocol) @host = host @port = port @protocol = protocol end |
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
3 4 5 |
# File 'lib/coronet/remote_endpoint.rb', line 3 def host @host end |
#port ⇒ Object
Returns the value of attribute port.
3 4 5 |
# File 'lib/coronet/remote_endpoint.rb', line 3 def port @port end |
#protocol ⇒ Object
Returns the value of attribute protocol.
4 5 6 |
# File 'lib/coronet/remote_endpoint.rb', line 4 def protocol @protocol end |
Instance Method Details
#transmit(request) ⇒ Object
12 13 14 |
# File 'lib/coronet/remote_endpoint.rb', line 12 def transmit(request) @protocol.transmit(request, @host, @port) end |