1 parent b14791f commit fcc6b2aCopy full SHA for fcc6b2a
1 file changed
lib/embed_workflow/client.rb
@@ -7,11 +7,9 @@ module Client
7
BASE_API_URL = "https://embedworkflow.com/".freeze
8
9
def client
10
- return @client if defined?(@client)
11
- @client = create_connection(URI.parse(BASE_API_URL))
12
- @client.use_ssl = true
13
-
14
- @client
+ create_connection(URI.parse(BASE_API_URL)).tap do |client|
+ client.use_ssl = true
+ end
15
end
16
17
def get_request(path:, auth: true, params: {})
0 commit comments