# File lib/apipie/client/base.rb, line 22 def call(method, path, params = { }, headers = { }) headers ||= { } args = [method] if [:post, :put].include?(method) args << params.to_json else headers[:params] = params if params end args << headers if headers process_data client[path].send(*args) end