Class: NBA::BoxScoreHustlePlayerStat
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::BoxScoreHustlePlayerStat
- Defined in:
- lib/nba/box_score_hustle_player_stat.rb
Overview
Represents hustle statistics for a player in a game
Instance Attribute Summary collapse
-
#box_outs ⇒ Integer
Returns box outs.
-
#charges_drawn ⇒ Integer
Returns charges drawn.
-
#comment ⇒ String
Returns any comment about the player.
-
#contested_shots ⇒ Integer
Returns contested shots.
-
#contested_shots_2pt ⇒ Integer
Returns contested 2-point shots.
-
#contested_shots_3pt ⇒ Integer
Returns contested 3-point shots.
-
#def_box_outs ⇒ Integer
Returns defensive box outs.
-
#def_loose_balls_recovered ⇒ Integer
Returns defensive loose balls recovered.
-
#deflections ⇒ Integer
Returns deflections.
-
#game_id ⇒ String
Returns the game ID.
-
#loose_balls_recovered ⇒ Integer
Returns loose balls recovered.
-
#min ⇒ String
Returns minutes played.
-
#off_box_outs ⇒ Integer
Returns offensive box outs.
-
#off_loose_balls_recovered ⇒ Integer
Returns offensive loose balls recovered.
-
#player_id ⇒ Integer
Returns the player ID.
-
#player_name ⇒ String
Returns the player name.
-
#pts ⇒ Integer
Returns points scored.
-
#screen_assists ⇒ Integer
Returns screen assists.
-
#screen_ast_pts ⇒ Integer
Returns points from screen assists.
-
#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.
-
#player ⇒ Player?
Returns the player object.
-
#starter? ⇒ Boolean
Returns whether the player started.
-
#team ⇒ Team?
Returns the team object.
Instance Attribute Details
#box_outs ⇒ Integer
Returns box outs
175 |
# File 'lib/nba/box_score_hustle_player_stat.rb', line 175 attribute :box_outs, Shale::Type::Integer |
#charges_drawn ⇒ Integer
Returns charges drawn
127 |
# File 'lib/nba/box_score_hustle_player_stat.rb', line 127 attribute :charges_drawn, Shale::Type::Integer |
#comment ⇒ String
Returns any comment about the player
71 |
# File 'lib/nba/box_score_hustle_player_stat.rb', line 71 attribute :comment, Shale::Type::String |
#contested_shots ⇒ Integer
Returns contested shots
95 |
# File 'lib/nba/box_score_hustle_player_stat.rb', line 95 attribute :contested_shots, Shale::Type::Integer |
#contested_shots_2pt ⇒ Integer
Returns contested 2-point shots
103 |
# File 'lib/nba/box_score_hustle_player_stat.rb', line 103 attribute :contested_shots_2pt, Shale::Type::Integer |
#contested_shots_3pt ⇒ Integer
Returns contested 3-point shots
111 |
# File 'lib/nba/box_score_hustle_player_stat.rb', line 111 attribute :contested_shots_3pt, Shale::Type::Integer |
#def_box_outs ⇒ Integer
Returns defensive box outs
191 |
# File 'lib/nba/box_score_hustle_player_stat.rb', line 191 attribute :def_box_outs, Shale::Type::Integer |
#def_loose_balls_recovered ⇒ Integer
Returns defensive loose balls recovered
167 |
# File 'lib/nba/box_score_hustle_player_stat.rb', line 167 attribute :def_loose_balls_recovered, Shale::Type::Integer |
#deflections ⇒ Integer
Returns deflections
119 |
# File 'lib/nba/box_score_hustle_player_stat.rb', line 119 attribute :deflections, Shale::Type::Integer |
#game_id ⇒ String
Returns the game ID
15 |
# File 'lib/nba/box_score_hustle_player_stat.rb', line 15 attribute :game_id, Shale::Type::String |
#loose_balls_recovered ⇒ Integer
Returns loose balls recovered
151 |
# File 'lib/nba/box_score_hustle_player_stat.rb', line 151 attribute :loose_balls_recovered, Shale::Type::Integer |
#min ⇒ String
Returns minutes played
79 |
# File 'lib/nba/box_score_hustle_player_stat.rb', line 79 attribute :min, Shale::Type::String |
#off_box_outs ⇒ Integer
Returns offensive box outs
183 |
# File 'lib/nba/box_score_hustle_player_stat.rb', line 183 attribute :off_box_outs, Shale::Type::Integer |
#off_loose_balls_recovered ⇒ Integer
Returns offensive loose balls recovered
159 |
# File 'lib/nba/box_score_hustle_player_stat.rb', line 159 attribute :off_loose_balls_recovered, Shale::Type::Integer |
#player_id ⇒ Integer
Returns the player ID
47 |
# File 'lib/nba/box_score_hustle_player_stat.rb', line 47 attribute :player_id, Shale::Type::Integer |
#player_name ⇒ String
Returns the player name
55 |
# File 'lib/nba/box_score_hustle_player_stat.rb', line 55 attribute :player_name, Shale::Type::String |
#pts ⇒ Integer
Returns points scored
87 |
# File 'lib/nba/box_score_hustle_player_stat.rb', line 87 attribute :pts, Shale::Type::Integer |
#screen_assists ⇒ Integer
Returns screen assists
135 |
# File 'lib/nba/box_score_hustle_player_stat.rb', line 135 attribute :screen_assists, Shale::Type::Integer |
#screen_ast_pts ⇒ Integer
Returns points from screen assists
143 |
# File 'lib/nba/box_score_hustle_player_stat.rb', line 143 attribute :screen_ast_pts, Shale::Type::Integer |
#start_position ⇒ String
Returns the starting position
63 |
# File 'lib/nba/box_score_hustle_player_stat.rb', line 63 attribute :start_position, Shale::Type::String |
#team_abbreviation ⇒ String
Returns the team abbreviation
31 |
# File 'lib/nba/box_score_hustle_player_stat.rb', line 31 attribute :team_abbreviation, Shale::Type::String |
#team_city ⇒ String
Returns the team city
39 |
# File 'lib/nba/box_score_hustle_player_stat.rb', line 39 attribute :team_city, Shale::Type::String |
#team_id ⇒ Integer
Returns the team ID
23 |
# File 'lib/nba/box_score_hustle_player_stat.rb', line 23 attribute :team_id, Shale::Type::Integer |
Instance Method Details
#game ⇒ Game?
Returns the game object
219 220 221 |
# File 'lib/nba/box_score_hustle_player_stat.rb', line 219 def game Games.find(game_id) end |
#player ⇒ Player?
Returns the player object
199 200 201 |
# File 'lib/nba/box_score_hustle_player_stat.rb', line 199 def player Players.find(player_id) end |
#starter? ⇒ Boolean
Returns whether the player started
229 230 231 |
# File 'lib/nba/box_score_hustle_player_stat.rb', line 229 def starter? !start_position.nil? && !start_position.empty? end |
#team ⇒ Team?
Returns the team object
209 210 211 |
# File 'lib/nba/box_score_hustle_player_stat.rb', line 209 def team Teams.find(team_id) end |