Class: NBA::AssistLeader
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::AssistLeader
- Defined in:
- lib/nba/assist_leader.rb
Overview
Represents an assist leader entry
Instance Attribute Summary collapse
-
#ast ⇒ Integer
Returns the total assists.
-
#player_id ⇒ Integer
Returns the player ID.
-
#player_name ⇒ String
Returns the player name.
-
#rank ⇒ Integer
Returns the rank in the category.
-
#team_abbreviation ⇒ String
Returns the team abbreviation.
-
#team_id ⇒ Integer
Returns the team ID.
Instance Method Summary collapse
-
#player ⇒ Player?
Returns the player object for this leader.
-
#team ⇒ Team?
Returns the team object for this leader.
Instance Attribute Details
#ast ⇒ Integer
Returns the total assists
57 |
# File 'lib/nba/assist_leader.rb', line 57 attribute :ast, Shale::Type::Integer |
#player_id ⇒ Integer
Returns the player ID
17 |
# File 'lib/nba/assist_leader.rb', line 17 attribute :player_id, Shale::Type::Integer |
#player_name ⇒ String
Returns the player name
25 |
# File 'lib/nba/assist_leader.rb', line 25 attribute :player_name, Shale::Type::String |
#rank ⇒ Integer
Returns the rank in the category
49 |
# File 'lib/nba/assist_leader.rb', line 49 attribute :rank, Shale::Type::Integer |
#team_abbreviation ⇒ String
Returns the team abbreviation
41 |
# File 'lib/nba/assist_leader.rb', line 41 attribute :team_abbreviation, Shale::Type::String |
#team_id ⇒ Integer
Returns the team ID
33 |
# File 'lib/nba/assist_leader.rb', line 33 attribute :team_id, Shale::Type::Integer |
Instance Method Details
#player ⇒ Player?
Returns the player object for this leader
65 66 67 |
# File 'lib/nba/assist_leader.rb', line 65 def player Players.find(player_id) end |
#team ⇒ Team?
Returns the team object for this leader
75 76 77 |
# File 'lib/nba/assist_leader.rb', line 75 def team Teams.find(team_id) end |