Skip to content

Commit 85ecba7

Browse files
author
Laurynas Butkus
committed
Fix keyword parameters deprecation
1 parent db7aaa4 commit 85ecba7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/convert_api/client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ def handle_http_exceptions
9191
raise(TimeoutError, e)
9292
end
9393

94-
def http(read_timeout: nil)
94+
def http(options = {})
9595
http = Net::HTTP.new(base_uri.host, base_uri.port)
9696
http.open_timeout = config.connect_timeout
97-
http.read_timeout = read_timeout || config.read_timeout
97+
http.read_timeout = options.fetch(:read_timeout, config.read_timeout)
9898
http.use_ssl = base_uri.scheme == 'https'
9999
# http.set_debug_output $stderr
100100
http

0 commit comments

Comments
 (0)