Class: NBA::LeagueDashPlayerBioStat
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::LeagueDashPlayerBioStat
- Defined in:
- lib/nba/league_dash_player_bio_stat.rb
Overview
Represents league-wide player biographical statistics
Instance Attribute Summary collapse
-
#age ⇒ Float?
Returns the player’s age.
-
#ast ⇒ Float?
Returns assists per game.
-
#ast_pct ⇒ Float?
Returns assist percentage.
-
#college ⇒ String?
Returns the player’s college.
-
#country ⇒ String?
Returns the player’s country.
-
#draft_number ⇒ String?
Returns the player’s draft number.
-
#draft_round ⇒ String?
Returns the player’s draft round.
-
#draft_year ⇒ String?
Returns the player’s draft year.
-
#dreb_pct ⇒ Float?
Returns defensive rebound percentage.
-
#gp ⇒ Integer?
Returns games played.
-
#net_rating ⇒ Float?
Returns net rating.
-
#oreb_pct ⇒ Float?
Returns offensive rebound percentage.
-
#player_height ⇒ String?
Returns the player’s height as a formatted string.
-
#player_height_inches ⇒ Integer?
Returns the player’s height in inches.
-
#player_id ⇒ Integer?
Returns the player ID.
-
#player_name ⇒ String?
Returns the player name.
-
#player_weight ⇒ Integer?
Returns the player’s weight in pounds.
-
#pts ⇒ Float?
Returns points per game.
-
#reb ⇒ Float?
Returns rebounds per game.
-
#team_abbreviation ⇒ String?
Returns the team abbreviation.
-
#team_id ⇒ Integer?
Returns the team ID.
-
#ts_pct ⇒ Float?
Returns true shooting percentage.
-
#usg_pct ⇒ Float?
Returns usage percentage.
Instance Method Summary collapse
-
#player ⇒ Player?
Returns the player.
-
#team ⇒ Team?
Returns the team.
Instance Attribute Details
#age ⇒ Float?
Returns the player’s age
51 |
# File 'lib/nba/league_dash_player_bio_stat.rb', line 51 attribute :age, Shale::Type::Float |
#ast ⇒ Float?
Returns assists per game
147 |
# File 'lib/nba/league_dash_player_bio_stat.rb', line 147 attribute :ast, Shale::Type::Float |
#ast_pct ⇒ Float?
Returns assist percentage
195 |
# File 'lib/nba/league_dash_player_bio_stat.rb', line 195 attribute :ast_pct, Shale::Type::Float |
#college ⇒ String?
Returns the player’s college
83 |
# File 'lib/nba/league_dash_player_bio_stat.rb', line 83 attribute :college, Shale::Type::String |
#country ⇒ String?
Returns the player’s country
91 |
# File 'lib/nba/league_dash_player_bio_stat.rb', line 91 attribute :country, Shale::Type::String |
#draft_number ⇒ String?
Returns the player’s draft number
115 |
# File 'lib/nba/league_dash_player_bio_stat.rb', line 115 attribute :draft_number, Shale::Type::String |
#draft_round ⇒ String?
Returns the player’s draft round
107 |
# File 'lib/nba/league_dash_player_bio_stat.rb', line 107 attribute :draft_round, Shale::Type::String |
#draft_year ⇒ String?
Returns the player’s draft year
99 |
# File 'lib/nba/league_dash_player_bio_stat.rb', line 99 attribute :draft_year, Shale::Type::String |
#dreb_pct ⇒ Float?
Returns defensive rebound percentage
171 |
# File 'lib/nba/league_dash_player_bio_stat.rb', line 171 attribute :dreb_pct, Shale::Type::Float |
#gp ⇒ Integer?
Returns games played
123 |
# File 'lib/nba/league_dash_player_bio_stat.rb', line 123 attribute :gp, Shale::Type::Integer |
#net_rating ⇒ Float?
Returns net rating
155 |
# File 'lib/nba/league_dash_player_bio_stat.rb', line 155 attribute :net_rating, Shale::Type::Float |
#oreb_pct ⇒ Float?
Returns offensive rebound percentage
163 |
# File 'lib/nba/league_dash_player_bio_stat.rb', line 163 attribute :oreb_pct, Shale::Type::Float |
#player_height ⇒ String?
Returns the player’s height as a formatted string
59 |
# File 'lib/nba/league_dash_player_bio_stat.rb', line 59 attribute :player_height, Shale::Type::String |
#player_height_inches ⇒ Integer?
Returns the player’s height in inches
67 |
# File 'lib/nba/league_dash_player_bio_stat.rb', line 67 attribute :player_height_inches, Shale::Type::Integer |
#player_id ⇒ Integer?
Returns the player ID
19 |
# File 'lib/nba/league_dash_player_bio_stat.rb', line 19 attribute :player_id, Shale::Type::Integer |
#player_name ⇒ String?
Returns the player name
27 |
# File 'lib/nba/league_dash_player_bio_stat.rb', line 27 attribute :player_name, Shale::Type::String |
#player_weight ⇒ Integer?
Returns the player’s weight in pounds
75 |
# File 'lib/nba/league_dash_player_bio_stat.rb', line 75 attribute :player_weight, Shale::Type::Integer |
#pts ⇒ Float?
Returns points per game
131 |
# File 'lib/nba/league_dash_player_bio_stat.rb', line 131 attribute :pts, Shale::Type::Float |
#reb ⇒ Float?
Returns rebounds per game
139 |
# File 'lib/nba/league_dash_player_bio_stat.rb', line 139 attribute :reb, Shale::Type::Float |
#team_abbreviation ⇒ String?
Returns the team abbreviation
43 |
# File 'lib/nba/league_dash_player_bio_stat.rb', line 43 attribute :team_abbreviation, Shale::Type::String |
#team_id ⇒ Integer?
Returns the team ID
35 |
# File 'lib/nba/league_dash_player_bio_stat.rb', line 35 attribute :team_id, Shale::Type::Integer |
#ts_pct ⇒ Float?
Returns true shooting percentage
187 |
# File 'lib/nba/league_dash_player_bio_stat.rb', line 187 attribute :ts_pct, Shale::Type::Float |
#usg_pct ⇒ Float?
Returns usage percentage
179 |
# File 'lib/nba/league_dash_player_bio_stat.rb', line 179 attribute :usg_pct, Shale::Type::Float |
Instance Method Details
#player ⇒ Player?
Returns the player
203 204 205 |
# File 'lib/nba/league_dash_player_bio_stat.rb', line 203 def player Players.find(player_id) end |
#team ⇒ Team?
Returns the team
213 214 215 |
# File 'lib/nba/league_dash_player_bio_stat.rb', line 213 def team Teams.find(team_id) end |