Class: NBA::TeamHistoricalLeader
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::TeamHistoricalLeader
- Defined in:
- lib/nba/team_historical_leader.rb
Overview
Represents a team’s all-time statistical leaders
Instance Attribute Summary collapse
-
#ast ⇒ Integer?
Returns the all-time assists total.
-
#ast_person_id ⇒ Integer?
Returns the assists leader player ID.
-
#ast_player ⇒ String?
Returns the assists leader player name.
-
#blk ⇒ Integer?
Returns the all-time blocks total.
-
#blk_person_id ⇒ Integer?
Returns the blocks leader player ID.
-
#blk_player ⇒ String?
Returns the blocks leader player name.
-
#pts ⇒ Integer?
Returns the all-time points total.
-
#pts_person_id ⇒ Integer?
Returns the points leader player ID.
-
#pts_player ⇒ String?
Returns the points leader player name.
-
#reb ⇒ Integer?
Returns the all-time rebounds total.
-
#reb_person_id ⇒ Integer?
Returns the rebounds leader player ID.
-
#reb_player ⇒ String?
Returns the rebounds leader player name.
-
#season_year ⇒ Integer?
Returns the season year.
-
#stl ⇒ Integer?
Returns the all-time steals total.
-
#stl_person_id ⇒ Integer?
Returns the steals leader player ID.
-
#stl_player ⇒ String?
Returns the steals leader player name.
-
#team_id ⇒ Integer?
Returns the team ID.
Instance Method Summary collapse
-
#ast_leader ⇒ Player?
Returns the assists leader player.
-
#blk_leader ⇒ Player?
Returns the blocks leader player.
-
#pts_leader ⇒ Player?
Returns the points leader player.
-
#reb_leader ⇒ Player?
Returns the rebounds leader player.
-
#stl_leader ⇒ Player?
Returns the steals leader player.
-
#team ⇒ Team?
Returns the team for this leader record.
Instance Attribute Details
#ast ⇒ Integer?
Returns the all-time assists total
57 |
# File 'lib/nba/team_historical_leader.rb', line 57 attribute :ast, Shale::Type::Integer |
#ast_person_id ⇒ Integer?
Returns the assists leader player ID
65 |
# File 'lib/nba/team_historical_leader.rb', line 65 attribute :ast_person_id, Shale::Type::Integer |
#ast_player ⇒ String?
Returns the assists leader player name
73 |
# File 'lib/nba/team_historical_leader.rb', line 73 attribute :ast_player, Shale::Type::String |
#blk ⇒ Integer?
Returns the all-time blocks total
105 |
# File 'lib/nba/team_historical_leader.rb', line 105 attribute :blk, Shale::Type::Integer |
#blk_person_id ⇒ Integer?
Returns the blocks leader player ID
113 |
# File 'lib/nba/team_historical_leader.rb', line 113 attribute :blk_person_id, Shale::Type::Integer |
#blk_player ⇒ String?
Returns the blocks leader player name
121 |
# File 'lib/nba/team_historical_leader.rb', line 121 attribute :blk_player, Shale::Type::String |
#pts ⇒ Integer?
Returns the all-time points total
33 |
# File 'lib/nba/team_historical_leader.rb', line 33 attribute :pts, Shale::Type::Integer |
#pts_person_id ⇒ Integer?
Returns the points leader player ID
41 |
# File 'lib/nba/team_historical_leader.rb', line 41 attribute :pts_person_id, Shale::Type::Integer |
#pts_player ⇒ String?
Returns the points leader player name
49 |
# File 'lib/nba/team_historical_leader.rb', line 49 attribute :pts_player, Shale::Type::String |
#reb ⇒ Integer?
Returns the all-time rebounds total
81 |
# File 'lib/nba/team_historical_leader.rb', line 81 attribute :reb, Shale::Type::Integer |
#reb_person_id ⇒ Integer?
Returns the rebounds leader player ID
89 |
# File 'lib/nba/team_historical_leader.rb', line 89 attribute :reb_person_id, Shale::Type::Integer |
#reb_player ⇒ String?
Returns the rebounds leader player name
97 |
# File 'lib/nba/team_historical_leader.rb', line 97 attribute :reb_player, Shale::Type::String |
#season_year ⇒ Integer?
Returns the season year
25 |
# File 'lib/nba/team_historical_leader.rb', line 25 attribute :season_year, Shale::Type::Integer |
#stl ⇒ Integer?
Returns the all-time steals total
129 |
# File 'lib/nba/team_historical_leader.rb', line 129 attribute :stl, Shale::Type::Integer |
#stl_person_id ⇒ Integer?
Returns the steals leader player ID
137 |
# File 'lib/nba/team_historical_leader.rb', line 137 attribute :stl_person_id, Shale::Type::Integer |
#stl_player ⇒ String?
Returns the steals leader player name
145 |
# File 'lib/nba/team_historical_leader.rb', line 145 attribute :stl_player, Shale::Type::String |
#team_id ⇒ Integer?
Returns the team ID
17 |
# File 'lib/nba/team_historical_leader.rb', line 17 attribute :team_id, Shale::Type::Integer |
Instance Method Details
#ast_leader ⇒ Player?
Returns the assists leader player
173 174 175 |
# File 'lib/nba/team_historical_leader.rb', line 173 def ast_leader Players.find(ast_person_id) end |
#blk_leader ⇒ Player?
Returns the blocks leader player
193 194 195 |
# File 'lib/nba/team_historical_leader.rb', line 193 def blk_leader Players.find(blk_person_id) end |
#pts_leader ⇒ Player?
Returns the points leader player
163 164 165 |
# File 'lib/nba/team_historical_leader.rb', line 163 def pts_leader Players.find(pts_person_id) end |
#reb_leader ⇒ Player?
Returns the rebounds leader player
183 184 185 |
# File 'lib/nba/team_historical_leader.rb', line 183 def reb_leader Players.find(reb_person_id) end |