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 30, 2021
1 parent ca3c0a7 commit 6c43759
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_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
Expand Down

0 comments on commit 6c43759

Please sign in to comment.