2010-10-07 07:46:23 -07:00
|
|
|
require 'net/http'
|
|
|
|
require 'rocketamf'
|
2024-01-24 00:59:11 -08:00
|
|
|
require_relative 'remote_gateway/service'
|
2010-10-07 07:46:23 -07:00
|
|
|
|
2024-01-24 00:59:11 -08:00
|
|
|
module RocketAMFExtensions
|
2010-10-07 07:46:23 -07:00
|
|
|
class RemoteGateway
|
|
|
|
attr_reader :uri
|
2011-05-31 07:36:32 -07:00
|
|
|
|
2010-10-07 07:46:23 -07:00
|
|
|
def initialize(url)
|
|
|
|
@uri = URI.parse url
|
|
|
|
end
|
2011-05-31 07:36:32 -07:00
|
|
|
|
2010-10-07 07:46:23 -07:00
|
|
|
def service(name)
|
|
|
|
Service.new(self, name)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2011-05-31 07:36:32 -07:00
|
|
|
|