Method: Hapyrus::Proxy#run_command

Defined in:
lib/flydata/proxy.rb

#run_command(method, *args) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/flydata/proxy.rb', line 4

def run_command(method, *args)
  args.flatten!
  if args.size > 0
    @command_class.new.send(method, *args)
  else
    @command_class.new.send(method)
  end
end