Skip to content

Commit 7be6e97

Browse files
committed
Update api client of ruby client.
Update ApiClient#build_request, change `@verify_ssl`, `@ssl_ca_cert`, `@debugging` to `Configuration.verify_ssl`, `Configuration.ssl_ca_cert`, `Configuration.debugging`.
1 parent 828f869 commit 7be6e97

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

modules/swagger-codegen/src/main/resources/ruby/api_client.mustache

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ module {{moduleName}}
6969
:method => http_method,
7070
:headers => header_params,
7171
:params => query_params,
72-
:ssl_verifypeer => @verify_ssl,
73-
:cainfo => @ssl_ca_cert,
74-
:verbose => @debugging
72+
:ssl_verifypeer => Configuration.verify_ssl,
73+
:cainfo => Configuration.ssl_ca_cert,
74+
:verbose => Configuration.debugging
7575
}
7676

7777
if [:post, :patch, :put, :delete].include?(http_method)

samples/client/petstore/ruby/lib/petstore/api_client.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ def build_request(http_method, path, opts = {})
6969
:method => http_method,
7070
:headers => header_params,
7171
:params => query_params,
72-
:ssl_verifypeer => @verify_ssl,
73-
:cainfo => @ssl_ca_cert,
74-
:verbose => @debugging
72+
:ssl_verifypeer => Configuration.verify_ssl,
73+
:cainfo => Configuration.ssl_ca_cert,
74+
:verbose => Configuration.debugging
7575
}
7676

7777
if [:post, :patch, :put, :delete].include?(http_method)

0 commit comments

Comments
 (0)