lib/paysafe/api/base_api.rb in paysafe-0.12.0 vs lib/paysafe/api/base_api.rb in paysafe-0.13.0
- old
+ new
@@ -23,10 +23,10 @@
end
def http_client
HTTP
.headers(HEADERS)
- .timeout(@config.timeouts ? @config.timeouts : :null)
+ .timeout(@config.timeout || :null)
.basic_auth(user: @config.api_key, pass: @config.api_secret)
end
def perform_post_with_object(path, data, klass)
response = http_client.post("#{@config.api_base}#{path}", json: data.to_camel_case)