class VirtualTravelAgent::CLI

Public Instance Methods

call() click to toggle source
# File lib/virtual_travel_agent/cli.rb, line 2
def call
    greeting
    VirtualTravelAgent::Scraper.scraped_info
    list
    menu
    goodbye
end
goodbye() click to toggle source
# File lib/virtual_travel_agent/cli.rb, line 49
def goodbye
  puts "If you need anymore inspiration for a trip, come back!"
end
greeting() click to toggle source
# File lib/virtual_travel_agent/cli.rb, line 10
def greeting
  puts ""
  puts "Having a tough time deciding where to go on vacation?"
  puts "Well let us help guide your thinking with this Virtual Travel Agent Gem!"
  puts ""
end
list() click to toggle source
# File lib/virtual_travel_agent/cli.rb, line 17
def list
  puts "Here is a list of the top 10 can't miss destinations:"
  country = VirtualTravelAgent::Country.all
  country.each do |trips|
    sleep(1)
    puts "#{trips.name}"
  end
end
menu() click to toggle source