class Stattleship::HockeyTeamGameLog

Public Instance Methods

stats() click to toggle source
# File lib/stattleship/hockey_team_game_logs.rb, line 3
def stats
  [
    "#{StatFormatter.format(value: goals)} G",
    "#{StatFormatter.format(value: penalty_minutes)} PIM",
    "#{StatFormatter.format(value: player_points)} P",
    "#{StatFormatter.format(value: shots)} S"
  ]
end
to_sentence() click to toggle source
# File lib/stattleship/hockey_team_game_logs.rb, line 12
def to_sentence
  "#{team_name} #{stats.join(', ')} (#{game.name})"
end