class Jukebox::CLI
CLI
Controller
Public Instance Methods
call()
click to toggle source
# File lib/jukebox/cli.rb, line 4 def call puts "Welcome to Jukebox!" list_concerts menu goodbye end
goodbye()
click to toggle source
# File lib/jukebox/cli.rb, line 52 def goodbye puts "\nGoodbye! Thanks for using Jukebox! Check back soon for more concerts!" end
list_concerts()
click to toggle source
# File lib/jukebox/cli.rb, line 11 def list_concerts puts "Here is a list of artists coming to the Memphis area:\n\n" #calls the scrape_concerts method and prints each artists name in a list @concerts = Jukebox::Concert.scrape_concerts @concerts.each.with_index(1) do |concert, i| puts "#{i}. #{concert.artist_name}" end end