# Path: nhlscrapi/scrapr/toirep.py
# class HomeTOIRep(TOIRepBase):
#     """Scrapes the home team TOI report"""
#   
#     def __init__(self, game_key):
#         super(HomeTOIRep, self).__init__(game_key, "home_toi")
# 
# class AwayTOIRep(TOIRepBase):
#     """Scrapes the home team TOI report"""
#   
#     def __init__(self, game_key):
#         super(AwayTOIRep, self).__init__(game_key, "away_toi")


from nhlscrapi.scrapr.toirep import HomeTOIRep, AwayTOIRep
from nhlscrapi.games.repscrwrap import RepScrWrap, dispatch_loader
            {
                'period': period_num,
                'shifts': shift_count,
                'avg': { 'min': min, 'sec': sec },
                'toi': { 'min': min, 'sec': sec },
                'ev_toi': { 'min': min, 'sec': sec },
                'pp_toi': { 'min': min, 'sec': sec },
                'sh_toi': { 'min': min, 'sec': sec }
            }
        """
      
    @property
    def game_summ(self):
        """
        Time on ice summary for the game
        
        :returns: dict, same form as ``self.by_period``
        """
        return self.by_period.get(0, None)


class TOI(RepScrWrap):
    """
    Time on ice summary report. Produces the time on ice per shift by player for both home and away.
        
    :param game_key: unique game identifier of type :py:class:`.GameKey`
    """
    def __init__(self, game_key):
        super(TOI, self).__init__(game_key, HomeTOIRep(game_key))
        

# Path: nhlscrapi/scrapr/toirep.py
# class HomeTOIRep(TOIRepBase):
#     """Scrapes the home team TOI report"""
#   
#     def __init__(self, game_key):
#         super(HomeTOIRep, self).__init__(game_key, "home_toi")
# 
# class AwayTOIRep(TOIRepBase):
#     """Scrapes the home team TOI report"""
#   
#     def __init__(self, game_key):
#         super(AwayTOIRep, self).__init__(game_key, "away_toi")


# Path: nhlscrapi/games/toi.py
from nhlscrapi.scrapr.toirep import HomeTOIRep, AwayTOIRep
from nhlscrapi.games.repscrwrap import RepScrWrap, dispatch_loader

            {
                'period': period_num,
                'shifts': shift_count,
                'avg': { 'min': min, 'sec': sec },
                'toi': { 'min': min, 'sec': sec },
                'ev_toi': { 'min': min, 'sec': sec },
                'pp_toi': { 'min': min, 'sec': sec },
                'sh_toi': { 'min': min, 'sec': sec }
            }
        """
      
    @property
    def game_summ(self):
        """
        Time on ice summary for the game
        
        :returns: dict, same form as ``self.by_period``
        """
        return self.by_period.get(0, None)


class TOI(RepScrWrap):
    """
    Time on ice summary report. Produces the time on ice per shift by player for both home and away.
        
    :param game_key: unique game identifier of type :py:class:`.GameKey`
    """
    def __init__(self, game_key):
        super(TOI, self).__init__(game_key, HomeTOIRep(game_key))
        

        self._away = AwayTOIRep(game_key)