Class: NBA::BoxScoreDefensivePlayerStat
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::BoxScoreDefensivePlayerStat
- Defined in:
- lib/nba/box_score_defensive_player_stat.rb
Overview
Represents defensive statistics for a player in a game
Instance Attribute Summary collapse
-
#blocks ⇒ Integer
Returns blocks.
-
#comment ⇒ String
Returns any comment about the player.
-
#defensive_rebounds ⇒ Integer
Returns defensive rebounds.
-
#family_name ⇒ String
Returns the player family name.
-
#first_name ⇒ String
Returns the player first name.
-
#game_id ⇒ String
Returns the game ID.
-
#jersey_num ⇒ String
Returns the jersey number.
-
#matchup_assists ⇒ Integer
Returns matchup assists.
-
#matchup_field_goal_percentage ⇒ Float
Returns matchup field goal percentage.
-
#matchup_field_goals_attempted ⇒ Integer
Returns matchup field goals attempted.
-
#matchup_field_goals_made ⇒ Integer
Returns matchup field goals made.
-
#matchup_minutes ⇒ Float
Returns the matchup minutes.
-
#matchup_three_pointer_percentage ⇒ Float
Returns matchup three pointer percentage.
-
#matchup_three_pointers_attempted ⇒ Integer
Returns matchup three pointers attempted.
-
#matchup_three_pointers_made ⇒ Integer
Returns matchup three pointers made.
-
#matchup_turnovers ⇒ Integer
Returns matchup turnovers.
-
#name_i ⇒ String
Returns the player name initial format.
-
#partial_possessions ⇒ Float
Returns partial possessions.
-
#person_id ⇒ Integer
Returns the person ID.
-
#player_points ⇒ Integer
Returns points allowed.
-
#player_slug ⇒ String
Returns the player slug.
-
#position ⇒ String
Returns the player position.
-
#steals ⇒ Integer
Returns steals.
-
#switches_on ⇒ Integer
Returns number of switches on.
-
#team_city ⇒ String
Returns the team city.
-
#team_id ⇒ Integer
Returns the team ID.
-
#team_name ⇒ String
Returns the team name.
-
#team_slug ⇒ String
Returns the team slug.
-
#team_tricode ⇒ String
Returns the team tricode.
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
#blocks ⇒ Integer
Returns blocks
191 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 191 attribute :blocks, Shale::Type::Integer |
#comment ⇒ String
Returns any comment about the player
111 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 111 attribute :comment, Shale::Type::String |
#defensive_rebounds ⇒ Integer
Returns defensive rebounds
159 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 159 attribute :defensive_rebounds, Shale::Type::Integer |
#family_name ⇒ String
Returns the player family name
79 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 79 attribute :family_name, Shale::Type::String |
#first_name ⇒ String
Returns the player first name
71 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 71 attribute :first_name, Shale::Type::String |
#game_id ⇒ String
Returns the game ID
15 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 15 attribute :game_id, Shale::Type::String |
#jersey_num ⇒ String
Returns the jersey number
119 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 119 attribute :jersey_num, Shale::Type::String |
#matchup_assists ⇒ Integer
Returns matchup assists
167 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 167 attribute :matchup_assists, Shale::Type::Integer |
#matchup_field_goal_percentage ⇒ Float
Returns matchup field goal percentage
215 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 215 attribute :matchup_field_goal_percentage, Shale::Type::Float |
#matchup_field_goals_attempted ⇒ Integer
Returns matchup field goals attempted
207 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 207 attribute :matchup_field_goals_attempted, Shale::Type::Integer |
#matchup_field_goals_made ⇒ Integer
Returns matchup field goals made
199 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 199 attribute :matchup_field_goals_made, Shale::Type::Integer |
#matchup_minutes ⇒ Float
Returns the matchup minutes
127 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 127 attribute :matchup_minutes, Shale::Type::Float |
#matchup_three_pointer_percentage ⇒ Float
Returns matchup three pointer percentage
239 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 239 attribute :matchup_three_pointer_percentage, Shale::Type::Float |
#matchup_three_pointers_attempted ⇒ Integer
Returns matchup three pointers attempted
231 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 231 attribute :matchup_three_pointers_attempted, Shale::Type::Integer |
#matchup_three_pointers_made ⇒ Integer
Returns matchup three pointers made
223 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 223 attribute :matchup_three_pointers_made, Shale::Type::Integer |
#matchup_turnovers ⇒ Integer
Returns matchup turnovers
175 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 175 attribute :matchup_turnovers, Shale::Type::Integer |
#name_i ⇒ String
Returns the player name initial format
87 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 87 attribute :name_i, Shale::Type::String |
#partial_possessions ⇒ Float
Returns partial possessions
135 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 135 attribute :partial_possessions, Shale::Type::Float |
#person_id ⇒ Integer
Returns the person ID
63 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 63 attribute :person_id, Shale::Type::Integer |
#player_points ⇒ Integer
Returns points allowed
151 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 151 attribute :player_points, Shale::Type::Integer |
#player_slug ⇒ String
Returns the player slug
95 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 95 attribute :player_slug, Shale::Type::String |
#position ⇒ String
Returns the player position
103 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 103 attribute :position, Shale::Type::String |
#steals ⇒ Integer
Returns steals
183 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 183 attribute :steals, Shale::Type::Integer |
#switches_on ⇒ Integer
Returns number of switches on
143 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 143 attribute :switches_on, Shale::Type::Integer |
#team_city ⇒ String
Returns the team city
31 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 31 attribute :team_city, Shale::Type::String |
#team_id ⇒ Integer
Returns the team ID
23 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 23 attribute :team_id, Shale::Type::Integer |
#team_name ⇒ String
Returns the team name
39 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 39 attribute :team_name, Shale::Type::String |
#team_slug ⇒ String
Returns the team slug
55 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 55 attribute :team_slug, Shale::Type::String |
#team_tricode ⇒ String
Returns the team tricode
47 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 47 attribute :team_tricode, Shale::Type::String |
Instance Method Details
#game ⇒ Game?
Returns the game object
267 268 269 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 267 def game Games.find(game_id) end |
#player ⇒ Player?
Returns the player object
247 248 249 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 247 def player Players.find(person_id) end |
#starter? ⇒ Boolean
Returns whether the player started
277 278 279 |
# File 'lib/nba/box_score_defensive_player_stat.rb', line 277 def starter? !position.nil? && !position.empty? end |