Class: NBA::BoxScorePlayerTrackStat
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::BoxScorePlayerTrackStat
- Defined in:
- lib/nba/box_score_player_track_stat.rb
Overview
Represents player tracking statistics for a player in a game
Instance Attribute Summary collapse
-
#ast ⇒ Integer
Returns assists.
-
#cfg_pct ⇒ Float
Returns contested field goal percentage.
-
#cfga ⇒ Integer
Returns contested field goals attempted.
-
#cfgm ⇒ Integer
Returns contested field goals made.
-
#comment ⇒ String
Returns any comment about the player.
-
#dfg_pct ⇒ Float
Returns defended field goal percentage.
-
#dfga ⇒ Integer
Returns defended field goals attempted.
-
#dfgm ⇒ Integer
Returns defended field goals made.
-
#distance ⇒ Float
Returns distance traveled in miles.
-
#dreb_chances ⇒ Integer
Returns defensive rebound chances.
-
#ft_ast ⇒ Integer
Returns free throw assists.
-
#game_id ⇒ String
Returns the game ID.
-
#min ⇒ String
Returns minutes played.
-
#oreb_chances ⇒ Integer
Returns offensive rebound chances.
-
#passes ⇒ Integer
Returns total passes.
-
#player_id ⇒ Integer
Returns the player ID.
-
#player_name ⇒ String
Returns the player name.
-
#reb_chances ⇒ Integer
Returns total rebound chances.
-
#secondary_ast ⇒ Integer
Returns secondary assists.
-
#speed ⇒ Float
Returns average speed in miles per hour.
-
#start_position ⇒ String
Returns the starting position.
-
#team_abbreviation ⇒ String
Returns the team abbreviation.
-
#team_city ⇒ String
Returns the team city.
-
#team_id ⇒ Integer
Returns the team ID.
-
#touches ⇒ Integer
Returns total touches.
-
#ufg_pct ⇒ Float
Returns uncontested field goal percentage.
-
#ufga ⇒ Integer
Returns uncontested field goals attempted.
-
#ufgm ⇒ Integer
Returns uncontested field goals made.
Instance Method Summary collapse
-
#game ⇒ Game?
Returns the game object.
-
#player ⇒ Player?
Returns the player object.
-
#starter? ⇒ Boolean
Returns whether the player started.
-
#team ⇒ Team?
Returns the team object.
Instance Attribute Details
#ast ⇒ Integer
Returns assists
159 |
# File 'lib/nba/box_score_player_track_stat.rb', line 159 attribute :ast, Shale::Type::Integer |
#cfg_pct ⇒ Float
Returns contested field goal percentage
183 |
# File 'lib/nba/box_score_player_track_stat.rb', line 183 attribute :cfg_pct, Shale::Type::Float |
#cfga ⇒ Integer
Returns contested field goals attempted
175 |
# File 'lib/nba/box_score_player_track_stat.rb', line 175 attribute :cfga, Shale::Type::Integer |
#cfgm ⇒ Integer
Returns contested field goals made
167 |
# File 'lib/nba/box_score_player_track_stat.rb', line 167 attribute :cfgm, Shale::Type::Integer |
#comment ⇒ String
Returns any comment about the player
71 |
# File 'lib/nba/box_score_player_track_stat.rb', line 71 attribute :comment, Shale::Type::String |
#dfg_pct ⇒ Float
Returns defended field goal percentage
231 |
# File 'lib/nba/box_score_player_track_stat.rb', line 231 attribute :dfg_pct, Shale::Type::Float |
#dfga ⇒ Integer
Returns defended field goals attempted
223 |
# File 'lib/nba/box_score_player_track_stat.rb', line 223 attribute :dfga, Shale::Type::Integer |
#dfgm ⇒ Integer
Returns defended field goals made
215 |
# File 'lib/nba/box_score_player_track_stat.rb', line 215 attribute :dfgm, Shale::Type::Integer |
#distance ⇒ Float
Returns distance traveled in miles
95 |
# File 'lib/nba/box_score_player_track_stat.rb', line 95 attribute :distance, Shale::Type::Float |
#dreb_chances ⇒ Integer
Returns defensive rebound chances
111 |
# File 'lib/nba/box_score_player_track_stat.rb', line 111 attribute :dreb_chances, Shale::Type::Integer |
#ft_ast ⇒ Integer
Returns free throw assists
143 |
# File 'lib/nba/box_score_player_track_stat.rb', line 143 attribute :ft_ast, Shale::Type::Integer |
#game_id ⇒ String
Returns the game ID
15 |
# File 'lib/nba/box_score_player_track_stat.rb', line 15 attribute :game_id, Shale::Type::String |
#min ⇒ String
Returns minutes played
79 |
# File 'lib/nba/box_score_player_track_stat.rb', line 79 attribute :min, Shale::Type::String |
#oreb_chances ⇒ Integer
Returns offensive rebound chances
103 |
# File 'lib/nba/box_score_player_track_stat.rb', line 103 attribute :oreb_chances, Shale::Type::Integer |
#passes ⇒ Integer
Returns total passes
151 |
# File 'lib/nba/box_score_player_track_stat.rb', line 151 attribute :passes, Shale::Type::Integer |
#player_id ⇒ Integer
Returns the player ID
47 |
# File 'lib/nba/box_score_player_track_stat.rb', line 47 attribute :player_id, Shale::Type::Integer |
#player_name ⇒ String
Returns the player name
55 |
# File 'lib/nba/box_score_player_track_stat.rb', line 55 attribute :player_name, Shale::Type::String |
#reb_chances ⇒ Integer
Returns total rebound chances
119 |
# File 'lib/nba/box_score_player_track_stat.rb', line 119 attribute :reb_chances, Shale::Type::Integer |
#secondary_ast ⇒ Integer
Returns secondary assists
135 |
# File 'lib/nba/box_score_player_track_stat.rb', line 135 attribute :secondary_ast, Shale::Type::Integer |
#speed ⇒ Float
Returns average speed in miles per hour
87 |
# File 'lib/nba/box_score_player_track_stat.rb', line 87 attribute :speed, Shale::Type::Float |
#start_position ⇒ String
Returns the starting position
63 |
# File 'lib/nba/box_score_player_track_stat.rb', line 63 attribute :start_position, Shale::Type::String |
#team_abbreviation ⇒ String
Returns the team abbreviation
31 |
# File 'lib/nba/box_score_player_track_stat.rb', line 31 attribute :team_abbreviation, Shale::Type::String |
#team_city ⇒ String
Returns the team city
39 |
# File 'lib/nba/box_score_player_track_stat.rb', line 39 attribute :team_city, Shale::Type::String |
#team_id ⇒ Integer
Returns the team ID
23 |
# File 'lib/nba/box_score_player_track_stat.rb', line 23 attribute :team_id, Shale::Type::Integer |
#touches ⇒ Integer
Returns total touches
127 |
# File 'lib/nba/box_score_player_track_stat.rb', line 127 attribute :touches, Shale::Type::Integer |
#ufg_pct ⇒ Float
Returns uncontested field goal percentage
207 |
# File 'lib/nba/box_score_player_track_stat.rb', line 207 attribute :ufg_pct, Shale::Type::Float |
#ufga ⇒ Integer
Returns uncontested field goals attempted
199 |
# File 'lib/nba/box_score_player_track_stat.rb', line 199 attribute :ufga, Shale::Type::Integer |
#ufgm ⇒ Integer
Returns uncontested field goals made
191 |
# File 'lib/nba/box_score_player_track_stat.rb', line 191 attribute :ufgm, Shale::Type::Integer |
Instance Method Details
#game ⇒ Game?
Returns the game object
259 260 261 |
# File 'lib/nba/box_score_player_track_stat.rb', line 259 def game Games.find(game_id) end |
#player ⇒ Player?
Returns the player object
239 240 241 |
# File 'lib/nba/box_score_player_track_stat.rb', line 239 def player Players.find(player_id) end |
#starter? ⇒ Boolean
Returns whether the player started
269 270 271 |
# File 'lib/nba/box_score_player_track_stat.rb', line 269 def starter? !start_position.nil? && !start_position.empty? end |
#team ⇒ Team?
Returns the team object
249 250 251 |
# File 'lib/nba/box_score_player_track_stat.rb', line 249 def team Teams.find(team_id) end |