Class: NBA::BoxScoreMatchupStat
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::BoxScoreMatchupStat
- Defined in:
- lib/nba/box_score_matchup_stat.rb
Overview
Represents a player matchup statistic from the BoxScoreMatchupsV3 endpoint
Instance Attribute Summary collapse
-
#comment_def ⇒ String
Returns the defensive player comment.
-
#family_name_def ⇒ String
Returns the defensive player family name.
-
#family_name_off ⇒ String
Returns the offensive player family name.
-
#first_name_def ⇒ String
Returns the defensive player first name.
-
#first_name_off ⇒ String
Returns the offensive player first name.
-
#game_id ⇒ String
Returns the game ID.
-
#help_blocks ⇒ Integer
Returns the help blocks in the matchup.
-
#help_field_goals_attempted ⇒ Integer
Returns the help field goals attempted in the matchup.
-
#help_field_goals_made ⇒ Integer
Returns the help field goals made in the matchup.
-
#help_field_goals_percentage ⇒ Float
Returns the help field goal percentage in the matchup.
-
#jersey_num_def ⇒ String
Returns the defensive player jersey number.
-
#jersey_num_off ⇒ String
Returns the offensive player jersey number.
-
#matchup_assists ⇒ Integer
Returns the assists in the matchup.
-
#matchup_blocks ⇒ Integer
Returns the blocks in the matchup.
-
#matchup_field_goals_attempted ⇒ Integer
Returns the field goals attempted in the matchup.
-
#matchup_field_goals_made ⇒ Integer
Returns the field goals made in the matchup.
-
#matchup_field_goals_percentage ⇒ Float
Returns the field goal percentage in the matchup.
-
#matchup_free_throws_attempted ⇒ Integer
Returns the free throws attempted in the matchup.
-
#matchup_free_throws_made ⇒ Integer
Returns the free throws made in the matchup.
-
#matchup_minutes ⇒ String
Returns the matchup minutes in display format.
-
#matchup_minutes_sort ⇒ Float
Returns the matchup minutes as sortable float.
-
#matchup_potential_assists ⇒ Integer
Returns the potential assists in the matchup.
-
#matchup_three_pointers_attempted ⇒ Integer
Returns the three pointers attempted in the matchup.
-
#matchup_three_pointers_made ⇒ Integer
Returns the three pointers made in the matchup.
-
#matchup_three_pointers_percentage ⇒ Float
Returns the three point percentage in the matchup.
-
#matchup_turnovers ⇒ Integer
Returns the turnovers in the matchup.
-
#name_i_def ⇒ String
Returns the defensive player name initial format.
-
#name_i_off ⇒ String
Returns the offensive player name initial format.
-
#partial_possessions ⇒ Float
Returns the partial possessions.
-
#percentage_defender_total_time ⇒ Float
Returns the percentage of defender’s total time.
-
#percentage_offensive_total_time ⇒ Float
Returns the percentage of offensive player’s total time.
-
#percentage_total_time_both_on ⇒ Float
Returns the percentage of time both players were on court.
-
#person_id_def ⇒ Integer
Returns the defensive player ID.
-
#person_id_off ⇒ Integer
Returns the offensive player ID.
-
#player_points ⇒ Integer
Returns the points scored by the offensive player.
-
#player_slug_def ⇒ String
Returns the defensive player slug.
-
#player_slug_off ⇒ String
Returns the offensive player slug.
-
#position_def ⇒ String
Returns the defensive player position.
-
#shooting_fouls ⇒ Integer
Returns the shooting fouls drawn in the matchup.
-
#switches_on ⇒ Integer
Returns the number of switches onto the matchup.
-
#team_city ⇒ String
Returns the team city.
-
#team_id ⇒ Integer
Returns the team ID.
-
#team_name ⇒ String
Returns the team name.
-
#team_points ⇒ Integer
Returns the team points while in matchup.
-
#team_slug ⇒ String
Returns the team slug.
-
#team_tricode ⇒ String
Returns the team tricode.
Instance Method Summary collapse
-
#defensive_player ⇒ Player?
Returns the defensive player object.
-
#game ⇒ Game?
Returns the game object for this matchup.
-
#offensive_player ⇒ Player?
Returns the offensive player object.
-
#team ⇒ Team?
Returns the team object.
Instance Attribute Details
#comment_def ⇒ String
Returns the defensive player comment
159 |
# File 'lib/nba/box_score_matchup_stat.rb', line 159 attribute :comment_def, Shale::Type::String |
#family_name_def ⇒ String
Returns the defensive player family name
127 |
# File 'lib/nba/box_score_matchup_stat.rb', line 127 attribute :family_name_def, Shale::Type::String |
#family_name_off ⇒ String
Returns the offensive player family name
79 |
# File 'lib/nba/box_score_matchup_stat.rb', line 79 attribute :family_name_off, Shale::Type::String |
#first_name_def ⇒ String
Returns the defensive player first name
119 |
# File 'lib/nba/box_score_matchup_stat.rb', line 119 attribute :first_name_def, Shale::Type::String |
#first_name_off ⇒ String
Returns the offensive player first name
71 |
# File 'lib/nba/box_score_matchup_stat.rb', line 71 attribute :first_name_off, Shale::Type::String |
#game_id ⇒ String
Returns the game ID
15 |
# File 'lib/nba/box_score_matchup_stat.rb', line 15 attribute :game_id, Shale::Type::String |
#help_blocks ⇒ Integer
Returns the help blocks in the matchup
327 |
# File 'lib/nba/box_score_matchup_stat.rb', line 327 attribute :help_blocks, Shale::Type::Integer |
#help_field_goals_attempted ⇒ Integer
Returns the help field goals attempted in the matchup
343 |
# File 'lib/nba/box_score_matchup_stat.rb', line 343 attribute :help_field_goals_attempted, Shale::Type::Integer |
#help_field_goals_made ⇒ Integer
Returns the help field goals made in the matchup
335 |
# File 'lib/nba/box_score_matchup_stat.rb', line 335 attribute :help_field_goals_made, Shale::Type::Integer |
#help_field_goals_percentage ⇒ Float
Returns the help field goal percentage in the matchup
351 |
# File 'lib/nba/box_score_matchup_stat.rb', line 351 attribute :help_field_goals_percentage, Shale::Type::Float |
#jersey_num_def ⇒ String
Returns the defensive player jersey number
167 |
# File 'lib/nba/box_score_matchup_stat.rb', line 167 attribute :jersey_num_def, Shale::Type::String |
#jersey_num_off ⇒ String
Returns the offensive player jersey number
103 |
# File 'lib/nba/box_score_matchup_stat.rb', line 103 attribute :jersey_num_off, Shale::Type::String |
#matchup_assists ⇒ Integer
Returns the assists in the matchup
247 |
# File 'lib/nba/box_score_matchup_stat.rb', line 247 attribute :matchup_assists, Shale::Type::Integer |
#matchup_blocks ⇒ Integer
Returns the blocks in the matchup
271 |
# File 'lib/nba/box_score_matchup_stat.rb', line 271 attribute :matchup_blocks, Shale::Type::Integer |
#matchup_field_goals_attempted ⇒ Integer
Returns the field goals attempted in the matchup
287 |
# File 'lib/nba/box_score_matchup_stat.rb', line 287 attribute :matchup_field_goals_attempted, Shale::Type::Integer |
#matchup_field_goals_made ⇒ Integer
Returns the field goals made in the matchup
279 |
# File 'lib/nba/box_score_matchup_stat.rb', line 279 attribute :matchup_field_goals_made, Shale::Type::Integer |
#matchup_field_goals_percentage ⇒ Float
Returns the field goal percentage in the matchup
295 |
# File 'lib/nba/box_score_matchup_stat.rb', line 295 attribute :matchup_field_goals_percentage, Shale::Type::Float |
#matchup_free_throws_attempted ⇒ Integer
Returns the free throws attempted in the matchup
367 |
# File 'lib/nba/box_score_matchup_stat.rb', line 367 attribute :matchup_free_throws_attempted, Shale::Type::Integer |
#matchup_free_throws_made ⇒ Integer
Returns the free throws made in the matchup
359 |
# File 'lib/nba/box_score_matchup_stat.rb', line 359 attribute :matchup_free_throws_made, Shale::Type::Integer |
#matchup_minutes ⇒ String
Returns the matchup minutes in display format
175 |
# File 'lib/nba/box_score_matchup_stat.rb', line 175 attribute :matchup_minutes, Shale::Type::String |
#matchup_minutes_sort ⇒ Float
Returns the matchup minutes as sortable float
183 |
# File 'lib/nba/box_score_matchup_stat.rb', line 183 attribute :matchup_minutes_sort, Shale::Type::Float |
#matchup_potential_assists ⇒ Integer
Returns the potential assists in the matchup
255 |
# File 'lib/nba/box_score_matchup_stat.rb', line 255 attribute :matchup_potential_assists, Shale::Type::Integer |
#matchup_three_pointers_attempted ⇒ Integer
Returns the three pointers attempted in the matchup
311 |
# File 'lib/nba/box_score_matchup_stat.rb', line 311 attribute :matchup_three_pointers_attempted, Shale::Type::Integer |
#matchup_three_pointers_made ⇒ Integer
Returns the three pointers made in the matchup
303 |
# File 'lib/nba/box_score_matchup_stat.rb', line 303 attribute :matchup_three_pointers_made, Shale::Type::Integer |
#matchup_three_pointers_percentage ⇒ Float
Returns the three point percentage in the matchup
319 |
# File 'lib/nba/box_score_matchup_stat.rb', line 319 attribute :matchup_three_pointers_percentage, Shale::Type::Float |
#matchup_turnovers ⇒ Integer
Returns the turnovers in the matchup
263 |
# File 'lib/nba/box_score_matchup_stat.rb', line 263 attribute :matchup_turnovers, Shale::Type::Integer |
#name_i_def ⇒ String
Returns the defensive player name initial format
135 |
# File 'lib/nba/box_score_matchup_stat.rb', line 135 attribute :name_i_def, Shale::Type::String |
#name_i_off ⇒ String
Returns the offensive player name initial format
87 |
# File 'lib/nba/box_score_matchup_stat.rb', line 87 attribute :name_i_off, Shale::Type::String |
#partial_possessions ⇒ Float
Returns the partial possessions
191 |
# File 'lib/nba/box_score_matchup_stat.rb', line 191 attribute :partial_possessions, Shale::Type::Float |
#percentage_defender_total_time ⇒ Float
Returns the percentage of defender’s total time
199 |
# File 'lib/nba/box_score_matchup_stat.rb', line 199 attribute :percentage_defender_total_time, Shale::Type::Float |
#percentage_offensive_total_time ⇒ Float
Returns the percentage of offensive player’s total time
207 |
# File 'lib/nba/box_score_matchup_stat.rb', line 207 attribute :percentage_offensive_total_time, Shale::Type::Float |
#percentage_total_time_both_on ⇒ Float
Returns the percentage of time both players were on court
215 |
# File 'lib/nba/box_score_matchup_stat.rb', line 215 attribute :percentage_total_time_both_on, Shale::Type::Float |
#person_id_def ⇒ Integer
Returns the defensive player ID
111 |
# File 'lib/nba/box_score_matchup_stat.rb', line 111 attribute :person_id_def, Shale::Type::Integer |
#person_id_off ⇒ Integer
Returns the offensive player ID
63 |
# File 'lib/nba/box_score_matchup_stat.rb', line 63 attribute :person_id_off, Shale::Type::Integer |
#player_points ⇒ Integer
Returns the points scored by the offensive player
231 |
# File 'lib/nba/box_score_matchup_stat.rb', line 231 attribute :player_points, Shale::Type::Integer |
#player_slug_def ⇒ String
Returns the defensive player slug
143 |
# File 'lib/nba/box_score_matchup_stat.rb', line 143 attribute :player_slug_def, Shale::Type::String |
#player_slug_off ⇒ String
Returns the offensive player slug
95 |
# File 'lib/nba/box_score_matchup_stat.rb', line 95 attribute :player_slug_off, Shale::Type::String |
#position_def ⇒ String
Returns the defensive player position
151 |
# File 'lib/nba/box_score_matchup_stat.rb', line 151 attribute :position_def, Shale::Type::String |
#shooting_fouls ⇒ Integer
Returns the shooting fouls drawn in the matchup
375 |
# File 'lib/nba/box_score_matchup_stat.rb', line 375 attribute :shooting_fouls, Shale::Type::Integer |
#switches_on ⇒ Integer
Returns the number of switches onto the matchup
223 |
# File 'lib/nba/box_score_matchup_stat.rb', line 223 attribute :switches_on, Shale::Type::Integer |
#team_city ⇒ String
Returns the team city
31 |
# File 'lib/nba/box_score_matchup_stat.rb', line 31 attribute :team_city, Shale::Type::String |
#team_id ⇒ Integer
Returns the team ID
23 |
# File 'lib/nba/box_score_matchup_stat.rb', line 23 attribute :team_id, Shale::Type::Integer |
#team_name ⇒ String
Returns the team name
39 |
# File 'lib/nba/box_score_matchup_stat.rb', line 39 attribute :team_name, Shale::Type::String |
#team_points ⇒ Integer
Returns the team points while in matchup
239 |
# File 'lib/nba/box_score_matchup_stat.rb', line 239 attribute :team_points, Shale::Type::Integer |
#team_slug ⇒ String
Returns the team slug
55 |
# File 'lib/nba/box_score_matchup_stat.rb', line 55 attribute :team_slug, Shale::Type::String |
#team_tricode ⇒ String
Returns the team tricode
47 |
# File 'lib/nba/box_score_matchup_stat.rb', line 47 attribute :team_tricode, Shale::Type::String |
Instance Method Details
#defensive_player ⇒ Player?
Returns the defensive player object
393 394 395 |
# File 'lib/nba/box_score_matchup_stat.rb', line 393 def defensive_player Players.find(person_id_def) end |
#game ⇒ Game?
Returns the game object for this matchup
413 414 415 |
# File 'lib/nba/box_score_matchup_stat.rb', line 413 def game Games.find(game_id) end |
#offensive_player ⇒ Player?
Returns the offensive player object
383 384 385 |
# File 'lib/nba/box_score_matchup_stat.rb', line 383 def offensive_player Players.find(person_id_off) end |
#team ⇒ Team?
Returns the team object
403 404 405 |
# File 'lib/nba/box_score_matchup_stat.rb', line 403 def team Teams.find(team_id) end |