lib/hof_stats/cli.rb in hof_stats-0.1.2 vs lib/hof_stats/cli.rb in hof_stats-0.1.3

- old
+ new

@@ -9,9 +9,15 @@ def list_players HofStats::Scraper.new.make_player puts "MLB Hall of Famers" @players = HofStats::Player.all @players.each_with_index do |player, i| + if player.votes == "" + player.votes = "N/A" + end + if player.percent == "" + player.percent = "N/A" + end puts "#{i+1}. #{player.name} - #{player.year} - #{player.votes} votes - #{player.percent}%" end end def list_individual_player(player) \ No newline at end of file