Class: NBA::LeagueDashPlayerPtShotStat
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::LeagueDashPlayerPtShotStat
- Defined in:
- lib/nba/league_dash_player_pt_shot_stat.rb
Overview
Represents league-wide player tracking shot statistics
Instance Attribute Summary collapse
-
#age ⇒ Float?
Returns the player’s age.
-
#efg_pct ⇒ Float?
Returns effective field goal percentage.
-
#fg2_pct ⇒ Float?
Returns 2-point field goal percentage.
-
#fg2a ⇒ Float?
Returns 2-point field goals attempted.
-
#fg2a_frequency ⇒ Float?
Returns 2-point field goal attempt frequency.
-
#fg2m ⇒ Float?
Returns 2-point field goals made.
-
#fg3_pct ⇒ Float?
Returns 3-point field goal percentage.
-
#fg3a ⇒ Float?
Returns 3-point field goals attempted.
-
#fg3a_frequency ⇒ Float?
Returns 3-point field goal attempt frequency.
-
#fg3m ⇒ Float?
Returns 3-point field goals made.
-
#fg_pct ⇒ Float?
Returns field goal percentage.
-
#fga ⇒ Float?
Returns field goals attempted.
-
#fga_frequency ⇒ Float?
Returns field goal attempt frequency.
-
#fgm ⇒ Float?
Returns field goals made.
-
#g ⇒ Integer?
Returns number of games.
-
#gp ⇒ Integer?
Returns games played.
-
#player_id ⇒ Integer?
Returns the player ID.
-
#player_last_team_abbreviation ⇒ String?
Returns the player’s last team abbreviation.
-
#player_last_team_id ⇒ Integer?
Returns the player’s last team ID.
-
#player_name ⇒ String?
Returns the player name.
Instance Method Summary collapse
-
#player ⇒ Player?
Returns the player.
-
#team ⇒ Team?
Returns the player’s team.
Instance Attribute Details
#age ⇒ Float?
Returns the player’s age
51 |
# File 'lib/nba/league_dash_player_pt_shot_stat.rb', line 51 attribute :age, Shale::Type::Float |
#efg_pct ⇒ Float?
Returns effective field goal percentage
107 |
# File 'lib/nba/league_dash_player_pt_shot_stat.rb', line 107 attribute :efg_pct, Shale::Type::Float |
#fg2_pct ⇒ Float?
Returns 2-point field goal percentage
139 |
# File 'lib/nba/league_dash_player_pt_shot_stat.rb', line 139 attribute :fg2_pct, Shale::Type::Float |
#fg2a ⇒ Float?
Returns 2-point field goals attempted
131 |
# File 'lib/nba/league_dash_player_pt_shot_stat.rb', line 131 attribute :fg2a, Shale::Type::Float |
#fg2a_frequency ⇒ Float?
Returns 2-point field goal attempt frequency
115 |
# File 'lib/nba/league_dash_player_pt_shot_stat.rb', line 115 attribute :fg2a_frequency, Shale::Type::Float |
#fg2m ⇒ Float?
Returns 2-point field goals made
123 |
# File 'lib/nba/league_dash_player_pt_shot_stat.rb', line 123 attribute :fg2m, Shale::Type::Float |
#fg3_pct ⇒ Float?
Returns 3-point field goal percentage
171 |
# File 'lib/nba/league_dash_player_pt_shot_stat.rb', line 171 attribute :fg3_pct, Shale::Type::Float |
#fg3a ⇒ Float?
Returns 3-point field goals attempted
163 |
# File 'lib/nba/league_dash_player_pt_shot_stat.rb', line 163 attribute :fg3a, Shale::Type::Float |
#fg3a_frequency ⇒ Float?
Returns 3-point field goal attempt frequency
147 |
# File 'lib/nba/league_dash_player_pt_shot_stat.rb', line 147 attribute :fg3a_frequency, Shale::Type::Float |
#fg3m ⇒ Float?
Returns 3-point field goals made
155 |
# File 'lib/nba/league_dash_player_pt_shot_stat.rb', line 155 attribute :fg3m, Shale::Type::Float |
#fg_pct ⇒ Float?
Returns field goal percentage
99 |
# File 'lib/nba/league_dash_player_pt_shot_stat.rb', line 99 attribute :fg_pct, Shale::Type::Float |
#fga ⇒ Float?
Returns field goals attempted
91 |
# File 'lib/nba/league_dash_player_pt_shot_stat.rb', line 91 attribute :fga, Shale::Type::Float |
#fga_frequency ⇒ Float?
Returns field goal attempt frequency
75 |
# File 'lib/nba/league_dash_player_pt_shot_stat.rb', line 75 attribute :fga_frequency, Shale::Type::Float |
#fgm ⇒ Float?
Returns field goals made
83 |
# File 'lib/nba/league_dash_player_pt_shot_stat.rb', line 83 attribute :fgm, Shale::Type::Float |
#g ⇒ Integer?
Returns number of games
67 |
# File 'lib/nba/league_dash_player_pt_shot_stat.rb', line 67 attribute :g, Shale::Type::Integer |
#gp ⇒ Integer?
Returns games played
59 |
# File 'lib/nba/league_dash_player_pt_shot_stat.rb', line 59 attribute :gp, Shale::Type::Integer |
#player_id ⇒ Integer?
Returns the player ID
19 |
# File 'lib/nba/league_dash_player_pt_shot_stat.rb', line 19 attribute :player_id, Shale::Type::Integer |
#player_last_team_abbreviation ⇒ String?
Returns the player’s last team abbreviation
43 |
# File 'lib/nba/league_dash_player_pt_shot_stat.rb', line 43 attribute :player_last_team_abbreviation, Shale::Type::String |
#player_last_team_id ⇒ Integer?
Returns the player’s last team ID
35 |
# File 'lib/nba/league_dash_player_pt_shot_stat.rb', line 35 attribute :player_last_team_id, Shale::Type::Integer |
#player_name ⇒ String?
Returns the player name
27 |
# File 'lib/nba/league_dash_player_pt_shot_stat.rb', line 27 attribute :player_name, Shale::Type::String |
Instance Method Details
#player ⇒ Player?
Returns the player
179 180 181 |
# File 'lib/nba/league_dash_player_pt_shot_stat.rb', line 179 def player Players.find(player_id) end |
#team ⇒ Team?
Returns the player’s team
189 190 191 |
# File 'lib/nba/league_dash_player_pt_shot_stat.rb', line 189 def team Teams.find(player_last_team_id) end |