Add a variable for legibility

This commit is contained in:
gregoirenovel 2018-03-15 14:15:32 +01:00
parent 5628eba0a4
commit a0a56d6f67

View file

@ -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)