-
Notifications
You must be signed in to change notification settings - Fork 42
Team Stats
The Team object is the main interface for getting statistics about an individual team.
Here are some of the things that you can do with an instance of the Team class:
all_games(year)
This method returns all of the games for the team for the specified season. The results are returned as an array of Game objects.
games_for_date(year, month, day)
This method returns the games played by this team on the date specified. In most cases this will return a 1 element array, however in the case of a team playing a double-header you may get an array containing 2 games as a result.
get_leadoff_hitters_by_year(year)
get_leadoff_hitters_unique(year)
get_cleanup_hitters_by_year(year)
get_cleanup_hitters_unique(year)
get_start_pitcher_appearances_by_year(year)
get_starters_unique(year)
get_close_pitcher_appearances_by_year(year)
get_closers_unique
quality_starts_count(year)