Class: MLB::ScheduledGameTeams

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

Overview

Represents the teams playing in a scheduled game

Instance Attribute Summary collapse

Instance Attribute Details

#awayScheduledGameTeam

Returns the away team information

Examples:

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

Returns:



59
# File 'lib/mlb/scheduled_game.rb', line 59

attribute :away, ScheduledGameTeam

#homeScheduledGameTeam

Returns the home team information

Examples:

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

Returns:



67
# File 'lib/mlb/scheduled_game.rb', line 67

attribute :home, ScheduledGameTeam