Class: Stattleship::TeamGameLog

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/stattleship/team_game_logs.rb

Instance Method Summary collapse

Instance Method Details

#cityObject



3
4
5
# File 'lib/stattleship/team_game_logs.rb', line 3

def city
  venue.city
end

#league_abbreviationObject



11
12
13
# File 'lib/stattleship/team_game_logs.rb', line 11

def league_abbreviation
  league.abbreviation
end

#league_nameObject



7
8
9
# File 'lib/stattleship/team_game_logs.rb', line 7

def league_name
  league.name
end

#opponent_full_nameObject



19
20
21
# File 'lib/stattleship/team_game_logs.rb', line 19

def opponent_full_name
  opponent.full_name
end

#opponent_nameObject



15
16
17
# File 'lib/stattleship/team_game_logs.rb', line 15

def opponent_name
  opponent.name
end

#scorelineObject



23
24
25
# File 'lib/stattleship/team_game_logs.rb', line 23

def scoreline
  game.scoreline
end

#team_full_nameObject



31
32
33
# File 'lib/stattleship/team_game_logs.rb', line 31

def team_full_name
  team.full_name
end

#team_nameObject



27
28
29
# File 'lib/stattleship/team_game_logs.rb', line 27

def team_name
  team.name
end

#venueObject



35
36
37
# File 'lib/stattleship/team_game_logs.rb', line 35

def venue
  game.venue
end