Skip to content

Commit 1765995

Browse files
committed
Use Faraday::RequestOptions
1 parent 52f11ee commit 1765995

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/adyen/client.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ def initialize(ws_user: nil, ws_password: nil, api_key: nil, oauth_token: nil, e
3333
@mock_service_url_base = mock_service_url_base || "http://localhost:#{mock_port}"
3434
@live_url_prefix = live_url_prefix
3535
@connection_options = connection_options || Faraday::ConnectionOptions.new(
36-
request: {
37-
open_timeout: 30, # default timeout (in seconds) to open a connection
38-
timeout: 60 # default timeout (in seconds) to wait for a response
39-
}
36+
request: Faraday::RequestOptions.new(
37+
open_timeout: 30, # default timeout (in seconds) to open a connection
38+
timeout: 60 # default timeout (in seconds) to wait for a response
39+
)
4040
)
4141

4242
@terminal_region = terminal_region

0 commit comments

Comments
 (0)