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
def self.call(api_url)
RestClient.get(api_url, params: { fields: :nom })
def self.call(url)
RestClient.get(url, params: { fields: :nom })
rescue RestClient::ServiceUnavailable
nil
end