Use parentheses

This commit is contained in:
gregoirenovel 2018-10-15 16:35:24 +02:00
parent dac2019675
commit ca8af0e904
3 changed files with 3 additions and 3 deletions

View file

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

View file

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

View file

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