Add a variable for legibility
This commit is contained in:
parent
5628eba0a4
commit
a0a56d6f67
1 changed files with 2 additions and 4 deletions
|
@ -28,13 +28,11 @@ class SIADE::API
|
|||
end
|
||||
|
||||
def self.call(resource_name, siret_or_siren, procedure_id)
|
||||
url = url(resource_name, siret_or_siren)
|
||||
params = params(siret_or_siren, procedure_id)
|
||||
verify_ssl_mode = OpenSSL::SSL::VERIFY_NONE
|
||||
|
||||
RestClient::Resource.new(
|
||||
url(resource_name, siret_or_siren),
|
||||
verify_ssl: verify_ssl_mode
|
||||
).get(params: params)
|
||||
RestClient::Resource.new(url, verify_ssl: verify_ssl_mode).get(params: params)
|
||||
end
|
||||
|
||||
def self.url(resource_name, siret_or_siren)
|
||||
|
|
Loading…
Reference in a new issue