Class: MLB::TeamRecord
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- MLB::TeamRecord
- Defined in:
- lib/mlb/team_record.rb
Overview
Represents a team’s record in the standings
Instance Attribute Summary collapse
-
#clinched ⇒ Boolean
(also: #clinched?)
Returns whether the team has clinched a playoff spot.
-
#division_champ ⇒ Boolean
(also: #division_champ?)
Returns whether the team is a division champion.
-
#division_leader ⇒ Boolean
(also: #division_leader?)
Returns whether the team leads the division.
-
#division_rank ⇒ String
Returns the division rank.
-
#games_back ⇒ String
Returns games behind the division leader.
-
#games_played ⇒ Integer
Returns the number of games played.
-
#league_rank ⇒ String
Returns the league rank.
-
#league_record ⇒ LeagueRecord
Returns the league record.
-
#losses ⇒ Integer
Returns the number of losses.
-
#run_differential ⇒ Integer
Returns the run differential.
-
#runs_allowed ⇒ Integer
Returns the runs allowed.
-
#runs_scored ⇒ Integer
Returns the runs scored.
-
#season ⇒ String
Returns the season year.
-
#streak ⇒ Streak
Returns the current streak.
-
#team ⇒ Team
Returns the team.
-
#winning_percentage ⇒ String
Returns the winning percentage.
-
#wins ⇒ Integer
Returns the number of wins.
Instance Attribute Details
#clinched ⇒ Boolean Also known as: clinched?
Returns whether the team has clinched a playoff spot
237 |
# File 'lib/mlb/team_record.rb', line 237 attribute :clinched, Shale::Type::Boolean |
#division_champ ⇒ Boolean Also known as: division_champ?
Returns whether the team is a division champion
221 |
# File 'lib/mlb/team_record.rb', line 221 attribute :division_champ, Shale::Type::Boolean |
#division_leader ⇒ Boolean Also known as: division_leader?
Returns whether the team leads the division
229 |
# File 'lib/mlb/team_record.rb', line 229 attribute :division_leader, Shale::Type::Boolean |
#division_rank ⇒ String
Returns the division rank
129 |
# File 'lib/mlb/team_record.rb', line 129 attribute :division_rank, Shale::Type::String |
#games_back ⇒ String
Returns games behind the division leader
155 |
# File 'lib/mlb/team_record.rb', line 155 attribute :games_back, Shale::Type::String |
#games_played ⇒ Integer
Returns the number of games played
147 |
# File 'lib/mlb/team_record.rb', line 147 attribute :games_played, Shale::Type::Integer |
#league_rank ⇒ String
Returns the league rank
137 |
# File 'lib/mlb/team_record.rb', line 137 attribute :league_rank, Shale::Type::String |
#league_record ⇒ LeagueRecord
Returns the league record
165 |
# File 'lib/mlb/team_record.rb', line 165 attribute :league_record, LeagueRecord |
#losses ⇒ Integer
Returns the number of losses
181 |
# File 'lib/mlb/team_record.rb', line 181 attribute :losses, Shale::Type::Integer |
#run_differential ⇒ Integer
Returns the run differential
205 |
# File 'lib/mlb/team_record.rb', line 205 attribute :run_differential, Shale::Type::Integer |
#runs_allowed ⇒ Integer
Returns the runs allowed
197 |
# File 'lib/mlb/team_record.rb', line 197 attribute :runs_allowed, Shale::Type::Integer |
#runs_scored ⇒ Integer
Returns the runs scored
189 |
# File 'lib/mlb/team_record.rb', line 189 attribute :runs_scored, Shale::Type::Integer |
#season ⇒ String
Returns the season year
113 |
# File 'lib/mlb/team_record.rb', line 113 attribute :season, Shale::Type::String |
#streak ⇒ Streak
Returns the current streak
121 |
# File 'lib/mlb/team_record.rb', line 121 attribute :streak, Streak |
#winning_percentage ⇒ String
Returns the winning percentage
213 |
# File 'lib/mlb/team_record.rb', line 213 attribute :winning_percentage, Shale::Type::String |
#wins ⇒ Integer
Returns the number of wins
173 |
# File 'lib/mlb/team_record.rb', line 173 attribute :wins, Shale::Type::Integer |