Class: MLB::BoxscoreTeams

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

Overview

Represents both teams in a boxscore

Instance Attribute Summary collapse

Instance Attribute Details

#awayBoxscoreTeam

Returns the away team data

Examples:

boxscore_teams.away #=> #<MLB::BoxscoreTeam>

Returns:



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

attribute :away, BoxscoreTeam

#homeBoxscoreTeam

Returns the home team data

Examples:

boxscore_teams.home #=> #<MLB::BoxscoreTeam>

Returns:



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

attribute :home, BoxscoreTeam