Class: MLB::LinescoreTeams

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

Overview

Represents both teams’ linescore totals

Instance Attribute Summary collapse

Instance Attribute Details

#awayLinescoreTeam

Returns the away team’s totals

Examples:

linescore_teams.away #=> #<MLB::LinescoreTeam>

Returns:



82
# File 'lib/mlb/linescore_teams.rb', line 82

attribute :away, LinescoreTeam

#homeLinescoreTeam

Returns the home team’s totals

Examples:

linescore_teams.home #=> #<MLB::LinescoreTeam>

Returns:



74
# File 'lib/mlb/linescore_teams.rb', line 74

attribute :home, LinescoreTeam