Esempio n. 1
0
    def __init__(self, game_key = None, cum_stats = {}):

        # conversion to GameKey from tuple allowed
        self.game_key = game_key if hasattr(game_key, 'to_tuple') else GameKey(key_tup=game_key)

        self.toi = TOI(self.game_key)
        """The :py:class:`.TOI` summary"""

        self.rosters = Rosters(self.game_key)
        """The :py:class:`.Rosters` summary"""

        self.summary = getGameSummary(self.game_key)

        self.face_off_comp = FaceOffComparison(self.game_key)
        """The :py:class:`.FaceOffComparison` summary"""

        self.play_by_play = PlayByPlay(self.game_key, cum_stats)
        """The :py:class:`.PlayByPlay` summary"""

        self.event_summary = EventSummary(self.game_key)
        """The :py:class:`.EventSummary` summary"""