class NewGames::CLI
Public Instance Methods
call()
click to toggle source
# File lib/new_games/cli.rb, line 5 def call Game.scrape_all list menu end
list()
click to toggle source
# File lib/new_games/cli.rb, line 11 def list puts "" puts "************* Xbox One Upcoming Games ****************" puts "" Game.all.each.with_index(1) do |game, i| puts "#{i}. #{game.title}" end end