Use parentheses
This commit is contained in:
parent
dac2019675
commit
ca8af0e904
3 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@ module ApiAdresse
|
|||
private
|
||||
|
||||
def driver
|
||||
@driver ||= ApiAdresse::Driver.new @address, 5
|
||||
@driver ||= ApiAdresse::Driver.new(@address, 5)
|
||||
end
|
||||
|
||||
def convert_driver_result_to_full_address
|
||||
|
|
|
@ -8,7 +8,7 @@ module ApiAdresse
|
|||
end
|
||||
|
||||
def call
|
||||
RestClient.get api_url, params: { q: @address, limit: @limit }
|
||||
RestClient.get(api_url, params: { q: @address, limit: @limit })
|
||||
rescue RestClient::ServiceUnavailable
|
||||
nil
|
||||
end
|
||||
|
|
|
@ -13,7 +13,7 @@ module ApiAdresse
|
|||
private
|
||||
|
||||
def driver
|
||||
@driver ||= ApiAdresse::Driver.new @address
|
||||
@driver ||= ApiAdresse::Driver.new(@address)
|
||||
end
|
||||
|
||||
def convert_driver_result_to_point
|
||||
|
|
Loading…
Reference in a new issue