class FortuneTeller::CLI

Public Instance Methods

call() click to toggle source
# File lib/fortune_teller/cli.rb, line 2
def call
  puts "      *       *       *         "
  puts "   *          **            *   "
  puts "      *       ***    *          "
  puts "   WELCONE     ****            "
  puts "     TO          ****       *    "
  puts "    YOUR            ****        "
  puts "   FORTUNE       *    ****"
  puts "   TELLER                ***     "
  puts "           *                 ***"
  puts "    *                              **"
  puts "Do you want to know what your horoscope tells you today??"
  horoscope_list
  puts "**************************************************"
  menu
  puts "**************************************************"
  see_you
end
horoscope_list() click to toggle source
# File lib/fortune_teller/cli.rb, line 20
def horoscope_list
  FortuneTeller::HoroscopeScraping.scrape_nypost_horoscope
  @horoscopes=FortuneTeller::Horoscope.all
  @horoscopes.each.with_index(1) do |hs, i|
   puts "#{i}. #{hs.name}"
   puts "  #{hs.date}"
  end
end
menu() click to toggle source
see_you() click to toggle source
# File lib/fortune_teller/cli.rb, line 46
def see_you
  puts "Thank you for using our application. See you next time!"
  puts "***     *** "
  puts "*    *    *"
  puts " * BYE!! *"
  puts "  *    *"
  puts "     *"
end