Class: MLB::GameTeams

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

Overview

Represents the teams playing in a game

Instance Attribute Summary collapse

Instance Attribute Details

#awayTeam

Returns the away team

Examples:

teams.away #=> #<MLB::Team>

Returns:

  • (Team)

    the away team



107
# File 'lib/mlb/game_data.rb', line 107

attribute :away, Team

#homeTeam

Returns the home team

Examples:

teams.home #=> #<MLB::Team>

Returns:

  • (Team)

    the home team



115
# File 'lib/mlb/game_data.rb', line 115

attribute :home, Team