Sha256: 6c08c095f2685673e1138b979af0b7ebbd45ce8df9239b751ca976c067ef878f
Contents?: true
Size: 238 Bytes
Versions: 2
Compression:
Stored size: 238 Bytes
Contents
require 'net/http' class RemoteActor def initialize(route, host, port) @route = route @host = host @port = port end def <<(message) Net::HTTP.get(@host, "/#{@route}?message=#{message}", @port) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ara-0.0.3 | lib/ara/remote_actor.rb |
ara-0.0.2 | lib/ara/remote_actor.rb |