Method: Etcdv3::Connection#call
- Defined in:
- lib/etcdv3/connection.rb
#call(stub, method, method_args = []) ⇒ Object
30 31 32 33 34 35 36 37 38 |
# File 'lib/etcdv3/connection.rb', line 30 def call(stub, method, method_args=[]) *method_args, method_kwargs = method_args if method_args.last.class == Hash if method_kwargs.nil? @handlers.fetch(stub).send(method, *method_args) else @handlers.fetch(stub).send(method, *method_args, **method_kwargs) end end |