diff --git a/app/services/google/client_service.rb b/app/services/google/client_service.rb index 49ff458a..7d149946 100644 --- a/app/services/google/client_service.rb +++ b/app/services/google/client_service.rb @@ -7,7 +7,7 @@ class ClientService BASE_SEARCH_URL = 'https://www.google.com/search' - def initialize(keyword, lang = 'en') + def initialize(keyword:, lang: 'en') escaped_keyword = CGI.escape(keyword) @uri = URI("#{BASE_SEARCH_URL}?q=#{escaped_keyword}&hl=#{lang}&gl=#{lang}") end