class Stattleship::FootballTeamGameLog
Public Instance Methods
stats()
click to toggle source
# File lib/stattleship/football_team_game_logs.rb, line 3 def stats [ "#{StatFormatter.format(value: team_score)} score", "#{StatFormatter.format(value: passing_touchdowns)} Pass TD", "#{StatFormatter.format(value: rushing_touchdowns)} Rush TD", "#{StatFormatter.format(value: passer_rating, precision: 5)} rating" ] end
to_sentence()
click to toggle source
# File lib/stattleship/football_team_game_logs.rb, line 12 def to_sentence "#{team_name} #{stats.join(', ')} (#{game.name})" end