Class: MLB::ScheduledGameTeam
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- MLB::ScheduledGameTeam
- Defined in:
- lib/mlb/scheduled_game.rb
Overview
Represents a team’s information in a scheduled game
Instance Attribute Summary collapse
-
#is_winner ⇒ Boolean
(also: #winner?)
Returns whether this team won the game.
-
#score ⇒ Integer
Returns the team’s score.
-
#team ⇒ Team
Returns the team.
Instance Attribute Details
#is_winner ⇒ Boolean Also known as: winner?
Returns whether this team won the game
34 |
# File 'lib/mlb/scheduled_game.rb', line 34 attribute :is_winner, Shale::Type::Boolean |
#score ⇒ Integer
Returns the team’s score
26 |
# File 'lib/mlb/scheduled_game.rb', line 26 attribute :score, Shale::Type::Integer |