Class: Stattleship::GameLog
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Stattleship::GameLog
show all
- Defined in:
- lib/stattleship/game_logs.rb
Instance Method Summary
collapse
Instance Method Details
#city ⇒ Object
3
4
5
|
# File 'lib/stattleship/game_logs.rb', line 3
def city
venue.city
end
|
#league_abbreviation ⇒ Object
11
12
13
|
# File 'lib/stattleship/game_logs.rb', line 11
def league_abbreviation
league.abbreviation
end
|
#league_name ⇒ Object
7
8
9
|
# File 'lib/stattleship/game_logs.rb', line 7
def league_name
league.name
end
|
#opponent_full_name ⇒ Object
23
24
25
|
# File 'lib/stattleship/game_logs.rb', line 23
def opponent_full_name
opponent.full_name
end
|
#opponent_name ⇒ Object
19
20
21
|
# File 'lib/stattleship/game_logs.rb', line 19
def opponent_name
opponent.name
end
|
#player_name ⇒ Object
15
16
17
|
# File 'lib/stattleship/game_logs.rb', line 15
def player_name
player.name
end
|
#scoreline ⇒ Object
27
28
29
|
# File 'lib/stattleship/game_logs.rb', line 27
def scoreline
game.scoreline
end
|
#team_full_name ⇒ Object
35
36
37
|
# File 'lib/stattleship/game_logs.rb', line 35
def team_full_name
team.full_name
end
|
#team_name ⇒ Object
31
32
33
|
# File 'lib/stattleship/game_logs.rb', line 31
def team_name
team.name
end
|
#venue ⇒ Object
39
40
41
|
# File 'lib/stattleship/game_logs.rb', line 39
def venue
game.venue
end
|