2010-10-07 07:46:23 -07:00
|
|
|
require 'net/http'
|
|
|
|
require 'rocketamf'
|
2011-05-31 07:36:32 -07:00
|
|
|
require File.join(File.dirname(__FILE__), 'remote_gateway', 'service')
|
|
|
|
require File.join(File.dirname(__FILE__), 'remote_gateway', 'request')
|
2010-10-07 07:46:23 -07:00
|
|
|
|
|
|
|
module RocketAMF
|
|
|
|
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
|
|
|
|