Method: Chid::Commands::StackOverflow#run

Defined in:
lib/chid/commands/stack_overflow.rb

#runObject



28
29
30
31
32
33
34
# File 'lib/chid/commands/stack_overflow.rb', line 28

def run
  text_to_search = text_to_search_from_options
  text_to_search = get_text_to_search if text_to_search.empty?

  questions = ::StackOverflowApi.questions(text_to_search)
  ::Paginator.new(questions).paginate { |question| question.summary }
end