Class: Stattleship::GameLog

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

Instance Method Summary collapse

Instance Method Details

#cityObject



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

def city
  venue.city
end

#league_abbreviationObject



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

def league_abbreviation
  league.abbreviation
end

#league_nameObject



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

def league_name
  league.name
end

#opponent_full_nameObject



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

def opponent_full_name
  opponent.full_name
end

#opponent_nameObject



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

def opponent_name
  opponent.name
end

#player_nameObject



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

def player_name
  player.name
end

#scorelineObject



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

def scoreline
  game.scoreline
end

#team_full_nameObject



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

def team_full_name
  team.full_name
end

#team_nameObject



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

def team_name
  team.name
end

#venueObject



39
40
41
# File 'lib/stattleship/game_logs.rb', line 39

def venue
  game.venue
end