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

#away ⇒ BoxscoreTeam

Returns the away team data

Examples:

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

Returns:

  • the away team

API:

  • public



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

attribute :away, BoxscoreTeam

#home ⇒ BoxscoreTeam

Returns the home team data

Examples:

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

Returns:

  • the home team

API:

  • public



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

attribute :home, BoxscoreTeam