api_url → url

This commit is contained in:
gregoirenovel 2018-10-15 16:31:02 +02:00
parent a7019719c2
commit d749d20bb3

View file

@ -16,8 +16,8 @@ module ApiGeo
private private
def self.call(api_url) def self.call(url)
RestClient.get(api_url, params: { fields: :nom }) RestClient.get(url, params: { fields: :nom })
rescue RestClient::ServiceUnavailable rescue RestClient::ServiceUnavailable
nil nil
end end