api_url → url
This commit is contained in:
parent
a7019719c2
commit
d749d20bb3
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue