Class: NBA::BoxScoreMiscPlayerStat
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::BoxScoreMiscPlayerStat
- Defined in:
- lib/nba/box_score_misc_player_stat.rb
Overview
Represents a player’s miscellaneous box score statistics for a game
Instance Attribute Summary collapse
-
#blk ⇒ Integer
Returns blocks.
-
#blka ⇒ Integer
Returns blocked attempts.
-
#comment ⇒ String
Returns any comment (e.g., “DNP - Rest”).
-
#game_id ⇒ String
Returns the game ID.
-
#min ⇒ String
Returns minutes played.
-
#opp_pts_2nd_chance ⇒ Integer
Returns opponent second chance points.
-
#opp_pts_fb ⇒ Integer
Returns opponent fast break points.
-
#opp_pts_off_tov ⇒ Integer
Returns opponent points off turnovers.
-
#opp_pts_paint ⇒ Integer
Returns opponent points in the paint.
-
#pf ⇒ Integer
Returns personal fouls.
-
#pfd ⇒ Integer
Returns personal fouls drawn.
-
#player_id ⇒ Integer
Returns the player ID.
-
#player_name ⇒ String
Returns the player name.
-
#pts_2nd_chance ⇒ Integer
Returns second chance points.
-
#pts_fb ⇒ Integer
Returns fast break points.
-
#pts_off_tov ⇒ Integer
Returns points off turnovers.
-
#pts_paint ⇒ Integer
Returns points in the paint.
-
#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.
Instance Method Summary collapse
-
#game ⇒ Game?
Returns the game object for this box score.
-
#player ⇒ Player?
Returns the player object.
-
#starter? ⇒ Boolean
Returns whether the player started the game.
-
#team ⇒ Team?
Returns the team object.
Instance Attribute Details
#blk ⇒ Integer
Returns blocks
151 |
# File 'lib/nba/box_score_misc_player_stat.rb', line 151 attribute :blk, Shale::Type::Integer |
#blka ⇒ Integer
Returns blocked attempts
159 |
# File 'lib/nba/box_score_misc_player_stat.rb', line 159 attribute :blka, Shale::Type::Integer |
#comment ⇒ String
Returns any comment (e.g., “DNP - Rest”)
71 |
# File 'lib/nba/box_score_misc_player_stat.rb', line 71 attribute :comment, Shale::Type::String |
#game_id ⇒ String
Returns the game ID
15 |
# File 'lib/nba/box_score_misc_player_stat.rb', line 15 attribute :game_id, Shale::Type::String |
#min ⇒ String
Returns minutes played
79 |
# File 'lib/nba/box_score_misc_player_stat.rb', line 79 attribute :min, Shale::Type::String |
#opp_pts_2nd_chance ⇒ Integer
Returns opponent second chance points
127 |
# File 'lib/nba/box_score_misc_player_stat.rb', line 127 attribute :opp_pts_2nd_chance, Shale::Type::Integer |
#opp_pts_fb ⇒ Integer
Returns opponent fast break points
135 |
# File 'lib/nba/box_score_misc_player_stat.rb', line 135 attribute :opp_pts_fb, Shale::Type::Integer |
#opp_pts_off_tov ⇒ Integer
Returns opponent points off turnovers
119 |
# File 'lib/nba/box_score_misc_player_stat.rb', line 119 attribute :opp_pts_off_tov, Shale::Type::Integer |
#opp_pts_paint ⇒ Integer
Returns opponent points in the paint
143 |
# File 'lib/nba/box_score_misc_player_stat.rb', line 143 attribute :opp_pts_paint, Shale::Type::Integer |
#pf ⇒ Integer
Returns personal fouls
167 |
# File 'lib/nba/box_score_misc_player_stat.rb', line 167 attribute :pf, Shale::Type::Integer |
#pfd ⇒ Integer
Returns personal fouls drawn
175 |
# File 'lib/nba/box_score_misc_player_stat.rb', line 175 attribute :pfd, Shale::Type::Integer |
#player_id ⇒ Integer
Returns the player ID
47 |
# File 'lib/nba/box_score_misc_player_stat.rb', line 47 attribute :player_id, Shale::Type::Integer |
#player_name ⇒ String
Returns the player name
55 |
# File 'lib/nba/box_score_misc_player_stat.rb', line 55 attribute :player_name, Shale::Type::String |
#pts_2nd_chance ⇒ Integer
Returns second chance points
95 |
# File 'lib/nba/box_score_misc_player_stat.rb', line 95 attribute :pts_2nd_chance, Shale::Type::Integer |
#pts_fb ⇒ Integer
Returns fast break points
103 |
# File 'lib/nba/box_score_misc_player_stat.rb', line 103 attribute :pts_fb, Shale::Type::Integer |
#pts_off_tov ⇒ Integer
Returns points off turnovers
87 |
# File 'lib/nba/box_score_misc_player_stat.rb', line 87 attribute :pts_off_tov, Shale::Type::Integer |
#pts_paint ⇒ Integer
Returns points in the paint
111 |
# File 'lib/nba/box_score_misc_player_stat.rb', line 111 attribute :pts_paint, Shale::Type::Integer |
#start_position ⇒ String
Returns the starting position
63 |
# File 'lib/nba/box_score_misc_player_stat.rb', line 63 attribute :start_position, Shale::Type::String |
#team_abbreviation ⇒ String
Returns the team abbreviation
31 |
# File 'lib/nba/box_score_misc_player_stat.rb', line 31 attribute :team_abbreviation, Shale::Type::String |
#team_city ⇒ String
Returns the team city
39 |
# File 'lib/nba/box_score_misc_player_stat.rb', line 39 attribute :team_city, Shale::Type::String |
#team_id ⇒ Integer
Returns the team ID
23 |
# File 'lib/nba/box_score_misc_player_stat.rb', line 23 attribute :team_id, Shale::Type::Integer |
Instance Method Details
#game ⇒ Game?
Returns the game object for this box score
213 214 215 |
# File 'lib/nba/box_score_misc_player_stat.rb', line 213 def game Games.find(game_id) end |
#player ⇒ Player?
Returns the player object
183 184 185 |
# File 'lib/nba/box_score_misc_player_stat.rb', line 183 def player Players.find(player_id) end |
#starter? ⇒ Boolean
Returns whether the player started the game
203 204 205 |
# File 'lib/nba/box_score_misc_player_stat.rb', line 203 def starter? !start_position.nil? && !start_position.empty? end |