Class: RemoteActor
- Inherits:
-
Object
- Object
- RemoteActor
- Defined in:
- lib/ara/remote_actor.rb
Instance Method Summary collapse
- #<<(message) ⇒ Object
-
#initialize(route, host, port) ⇒ RemoteActor
constructor
A new instance of RemoteActor.
Constructor Details
#initialize(route, host, port) ⇒ RemoteActor
Returns a new instance of RemoteActor.
4 5 6 7 8 |
# File 'lib/ara/remote_actor.rb', line 4 def initialize(route, host, port) @route = route @host = host @port = port end |
Instance Method Details
#<<(message) ⇒ Object
9 10 11 |
# File 'lib/ara/remote_actor.rb', line 9 def <<() Net::HTTP.get(@host, "/#{@route}?message=#{}", @port) end |