class BirthYearAlbum::CLI

CLI controller

Public Instance Methods

call() click to toggle source
# File lib/birth_year_album/cli.rb, line 5
def call
  menu
end
find_album(year) click to toggle source
# File lib/birth_year_album/cli.rb, line 46
def find_album(year)
  BirthYearAlbum::Album.album_by_year(year)
end
get_year() click to toggle source
# File lib/birth_year_album/cli.rb, line 50
def get_year
  puts "Which year were you born? Type exit to quit the program."
  input = gets.strip.downcase
end
menu() click to toggle source