Class: MLB::BoxscoreTeam

Inherits:
Shale::Mapper
  • Object
show all
Defined in:
lib/mlb/boxscore.rb

Overview

Represents one team’s boxscore data

Instance Attribute Summary collapse

Instance Attribute Details

#teamTeam

Returns the team

Examples:

boxscore_team.team #=> #<MLB::Team>

Returns:

  • (Team)

    the team



14
# File 'lib/mlb/boxscore.rb', line 14

attribute :team, Team

#team_statsBoxscoreTeamStats

Returns the team statistics

Examples:

boxscore_team.team_stats #=> #<MLB::BoxscoreTeamStats>

Returns:



22
# File 'lib/mlb/boxscore.rb', line 22

attribute :team_stats, BoxscoreTeamStats