<filename>src/mlb_statsapi/model/api/homerunderby.py
"""
created by nikos at 4/26/21
"""
from ..base import MLBStatsAPIEndpointModel
from mlb_statsapi.utils.stats_api_object import configure_api


class HomeRunDerbyModel(MLBStatsAPIEndpointModel):

    @configure_api
    def homeRunDerby(self, **kwargs):
        return self.get_api_file_object(**kwargs)

    @configure_api
    def homeRunDerbyBracket(self, **kwargs):
        return self.get_api_file_object(**kwargs)

    @configure_api
    def homeRunDerbyPool(self, **kwargs):
        return self.get_api_file_object(**kwargs)

    @configure_api
    def homeRunDerbyGameBracket(self, **kwargs):
        return self.get_api_file_object(**kwargs)

    @configure_api
    def homeRunDerbyGamePool(self, **kwargs):
        return self.get_api_file_object(**kwargs)

    @property
    def _methods(self) -> dict: return {m.__name__: m for m in (
        self.homeRunDerby,
        self.homeRunDerbyBracket,
        self.homeRunDerbyPool,
        self.homeRunDerbyGameBracket,
        self.homeRunDerbyGamePool
    )}

<filename>src/mlb_statsapi/model/api/homerunderby.py
"""
created by nikos at 4/26/21
"""
from ..base import MLBStatsAPIEndpointModel
from mlb_statsapi.utils.stats_api_object import configure_api


class HomeRunDerbyModel(MLBStatsAPIEndpointModel):

    @configure_api
    def homeRunDerby(self, **kwargs):
        return self.get_api_file_object(**kwargs)

    @configure_api
    def homeRunDerbyBracket(self, **kwargs):
        return self.get_api_file_object(**kwargs)

    @configure_api
    def homeRunDerbyPool(self, **kwargs):
        return self.get_api_file_object(**kwargs)

    @configure_api
    def homeRunDerbyGameBracket(self, **kwargs):
        return self.get_api_file_object(**kwargs)

    @configure_api
    def homeRunDerbyGamePool(self, **kwargs):
        return self.get_api_file_object(**kwargs)

    @property
    def _methods(self) -> dict: return {m.__name__: m for m in (
        self.homeRunDerby,
        self.homeRunDerbyBracket,
        self.homeRunDerbyPool,
        self.homeRunDerbyGameBracket,
        self.homeRunDerbyGamePool
    )}

created by nikos at 4/26/21