Method: Top25TravelDestinations::CLI#call

Defined in:
lib/top_25_travel_destinations/cli.rb

#callObject



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/top_25_travel_destinations/cli.rb', line 5

def call
  puts "Discover the top 25 travel destinations according to TripAdvisor!"

  while @input != "exit"
  Destination.list_destinations
  puts "Type the number next to the city that you would like more information on, or type 'exit'"
  @input = gets.chomp 
  choose_destination 
  Destination.destination_information(@input)
  end
  goodbye
end