Class: RemoteActor

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

Instance Method Summary (collapse)

Constructor Details

- (RemoteActor) initialize(route, host, port)

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

- (Object) <<(message)



9
10
11
# File 'lib/ara/remote_actor.rb', line 9

def <<(message)
   Net::HTTP.get(@host, "/#{@route}?message=#{message}", @port)
end