Module: LoadBalancedRestClient::RestClientProxy
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args, &blk) ⇒ Object
20
21
22
|
# File 'lib/rest_client_proxy.rb', line 20
def method_missing(method_name, *args, &blk)
RestClientProxyCall.new(@load_balancer).send(method_name, *args, &blk)
end
|
Instance Method Details
#[](uri) ⇒ Object
16
17
18
|
# File 'lib/rest_client_proxy.rb', line 16
def [](uri)
RestClientProxyCall.new(@load_balancer, uri)
end
|