lib/boxcars/boxcar/google_search.rb in boxcars-0.4.9 vs lib/boxcars/boxcar/google_search.rb in boxcars-0.4.10
- old
+ new
@@ -23,11 +23,11 @@
# @param question [String] The question to ask Google.
# @return [String] The answer to the question.
def run(question)
search = ::GoogleSearch.new(q: question)
rv = find_answer(search.get_hash)
- puts "Question: #{question}"
- puts "Answer: #{rv}"
+ Boxcars.info "Question: #{question}"
+ Boxcars.info "Answer: #{rv}"
rv
end
# Get the location of an answer from Google using the SerpAPI.
# @param question [String] The question to ask Google.