Skip to content

Commit

Permalink
[#7] Update service tests to call with keyword arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
malparty committed Jun 22, 2021
1 parent 4596c4a commit 6ab5dcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/google/client_service.rb
Expand Up @@ -7,7 +7,7 @@ class ClientService

BASE_SEARCH_URL2 = 'https://google.com/search'

def initialize(keyword, lang = 'en')
def initialize(keyword:, lang: 'en')
escaped_keyword = CGI.escape(keyword)
@uri = URI("#{BASE_SEARCH_URL2}?q=#{escaped_keyword}&hl=#{lang}&gl=#{lang}")
end
Expand Down

0 comments on commit 6ab5dcc

Please sign in to comment.