class Protobuf::Rpc::Client
def initialize(options = {})
})
:request => request
:response_type => "WidgetList",
:request_type => "WidgetFindRequest",
:method => "find",
:service => WidgetService,
client = Client.new({
request = WidgetFindRequest.new
as Client#method_missing defined below.
See Service#client for a more convenient way to create a client, as well
Create a new client with default options (defined in ClientConnection)
def initialize(options = {}) raise "Invalid client configuration. Service must be defined." if options[:service].nil? @connector = Connector.connector_for_client.new(options) log_debug { sign_message("Initialized with options: #{options.inspect}") } end