Class: NBA::FranchiseLeader
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::FranchiseLeader
- Defined in:
- lib/nba/franchise_leader.rb
Overview
Represents franchise leaders in various statistical categories
Instance Attribute Summary collapse
-
#ast ⇒ Integer
Returns the total assists by the leader.
-
#ast_person_id ⇒ Integer
Returns the person ID of the assists leader.
-
#ast_player_name ⇒ String
Returns the name of the assists leader.
-
#blk ⇒ Integer
Returns the total blocks by the leader.
-
#blk_person_id ⇒ Integer
Returns the person ID of the blocks leader.
-
#blk_player_name ⇒ String
Returns the name of the blocks leader.
-
#pts ⇒ Integer
Returns the total points scored by the leader.
-
#pts_person_id ⇒ Integer
Returns the person ID of the points leader.
-
#pts_player_name ⇒ String
Returns the name of the points leader.
-
#reb ⇒ Integer
Returns the total rebounds by the leader.
-
#reb_person_id ⇒ Integer
Returns the person ID of the rebounds leader.
-
#reb_player_name ⇒ String
Returns the name of the rebounds leader.
-
#stl ⇒ Integer
Returns the total steals by the leader.
-
#stl_person_id ⇒ Integer
Returns the person ID of the steals leader.
-
#stl_player_name ⇒ String
Returns the name of the steals leader.
-
#team_id ⇒ Integer
Returns the team ID.
Instance Method Summary collapse
-
#team ⇒ Team?
Returns the team object for this franchise.
Instance Attribute Details
#ast ⇒ Integer
Returns the total assists by the leader
63 |
# File 'lib/nba/franchise_leader.rb', line 63 attribute :ast, Shale::Type::Integer |
#ast_person_id ⇒ Integer
Returns the person ID of the assists leader
47 |
# File 'lib/nba/franchise_leader.rb', line 47 attribute :ast_person_id, Shale::Type::Integer |
#ast_player_name ⇒ String
Returns the name of the assists leader
55 |
# File 'lib/nba/franchise_leader.rb', line 55 attribute :ast_player_name, Shale::Type::String |
#blk ⇒ Integer
Returns the total blocks by the leader
111 |
# File 'lib/nba/franchise_leader.rb', line 111 attribute :blk, Shale::Type::Integer |
#blk_person_id ⇒ Integer
Returns the person ID of the blocks leader
95 |
# File 'lib/nba/franchise_leader.rb', line 95 attribute :blk_person_id, Shale::Type::Integer |
#blk_player_name ⇒ String
Returns the name of the blocks leader
103 |
# File 'lib/nba/franchise_leader.rb', line 103 attribute :blk_player_name, Shale::Type::String |
#pts ⇒ Integer
Returns the total points scored by the leader
39 |
# File 'lib/nba/franchise_leader.rb', line 39 attribute :pts, Shale::Type::Integer |
#pts_person_id ⇒ Integer
Returns the person ID of the points leader
23 |
# File 'lib/nba/franchise_leader.rb', line 23 attribute :pts_person_id, Shale::Type::Integer |
#pts_player_name ⇒ String
Returns the name of the points leader
31 |
# File 'lib/nba/franchise_leader.rb', line 31 attribute :pts_player_name, Shale::Type::String |
#reb ⇒ Integer
Returns the total rebounds by the leader
87 |
# File 'lib/nba/franchise_leader.rb', line 87 attribute :reb, Shale::Type::Integer |
#reb_person_id ⇒ Integer
Returns the person ID of the rebounds leader
71 |
# File 'lib/nba/franchise_leader.rb', line 71 attribute :reb_person_id, Shale::Type::Integer |
#reb_player_name ⇒ String
Returns the name of the rebounds leader
79 |
# File 'lib/nba/franchise_leader.rb', line 79 attribute :reb_player_name, Shale::Type::String |
#stl ⇒ Integer
Returns the total steals by the leader
135 |
# File 'lib/nba/franchise_leader.rb', line 135 attribute :stl, Shale::Type::Integer |
#stl_person_id ⇒ Integer
Returns the person ID of the steals leader
119 |
# File 'lib/nba/franchise_leader.rb', line 119 attribute :stl_person_id, Shale::Type::Integer |
#stl_player_name ⇒ String
Returns the name of the steals leader
127 |
# File 'lib/nba/franchise_leader.rb', line 127 attribute :stl_player_name, Shale::Type::String |
#team_id ⇒ Integer
Returns the team ID
15 |
# File 'lib/nba/franchise_leader.rb', line 15 attribute :team_id, Shale::Type::Integer |
Instance Method Details
#team ⇒ Team?
Returns the team object for this franchise
143 144 145 |
# File 'lib/nba/franchise_leader.rb', line 143 def team Teams.find(team_id) end |