Class: RemoteActor

Inherits:
Object
  • Object
show all
Defined in:
lib/ara/remote_actor.rb

Instance Method Summary collapse

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 <<(message)
   Net::HTTP.get(@host, "/#{@route}?message=#{message}", @port)
end