Class: NBA::Leader
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::Leader
- Defined in:
- lib/nba/leader.rb
Overview
Represents a statistical leader entry
Instance Attribute Summary collapse
-
#category ⇒ String
Returns the statistical category.
-
#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.
-
#value ⇒ Float
Returns the statistical value.
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
#category ⇒ String
Returns the statistical category
49 |
# File 'lib/nba/leader.rb', line 49 attribute :category, Shale::Type::String |
#player_id ⇒ Integer
Returns the player ID
17 |
# File 'lib/nba/leader.rb', line 17 attribute :player_id, Shale::Type::Integer |
#player_name ⇒ String
Returns the player name
25 |
# File 'lib/nba/leader.rb', line 25 attribute :player_name, Shale::Type::String |
#rank ⇒ Integer
Returns the rank in the category
57 |
# File 'lib/nba/leader.rb', line 57 attribute :rank, Shale::Type::Integer |
#team_abbreviation ⇒ String
Returns the team abbreviation
41 |
# File 'lib/nba/leader.rb', line 41 attribute :team_abbreviation, Shale::Type::String |
#team_id ⇒ Integer
Returns the team ID
33 |
# File 'lib/nba/leader.rb', line 33 attribute :team_id, Shale::Type::Integer |
#value ⇒ Float
Returns the statistical value
65 |
# File 'lib/nba/leader.rb', line 65 attribute :value, Shale::Type::Float |