class BestBooks::CLI
Public Instance Methods
book_descriptions(input, book_input)
click to toggle source
# File lib/best_books/cli.rb, line 20 def book_descriptions(input, book_input) BestBooks::Decade.description(input, book_input.to_i) end
call()
click to toggle source
# File lib/best_books/cli.rb, line 3 def call puts "The Best Books!" list_decades menu goodbye end
goodbye()
click to toggle source
# File lib/best_books/cli.rb, line 56 def goodbye puts "Ok, adios. I hope you're reading a book." end
list_decades()
click to toggle source
# File lib/best_books/cli.rb, line 10 def list_decades @decade = BestBooks::Decade.print @decade end
topten(input)
click to toggle source
# File lib/best_books/cli.rb, line 15 def topten(input) #This takes over a minute to load and that's gotta change. BestBooks::Decade.top10(input.to_i) end