Class: NBA::LeagueSeasonMatchupStat
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::LeagueSeasonMatchupStat
- Defined in:
- lib/nba/league_season_matchup_stat.rb
Overview
Represents a season matchup statistic between offensive and defensive players
Instance Attribute Summary collapse
-
#def_player_id ⇒ Integer?
Returns the defensive player ID.
-
#def_player_name ⇒ String?
Returns the defensive player name.
-
#gp ⇒ Integer?
Returns games played.
-
#help_blk ⇒ Float?
Returns help blocks.
-
#help_fg_pct ⇒ Float?
Returns help field goal percentage.
-
#help_fga ⇒ Float?
Returns help field goals attempted.
-
#help_fgm ⇒ Float?
Returns help field goals made.
-
#matchup_ast ⇒ Float?
Returns assists during matchup.
-
#matchup_blk ⇒ Float?
Returns blocks during matchup.
-
#matchup_fg3_pct ⇒ Float?
Returns three-point percentage during matchup.
-
#matchup_fg3a ⇒ Float?
Returns three-pointers attempted during matchup.
-
#matchup_fg3m ⇒ Float?
Returns three-pointers made during matchup.
-
#matchup_fg_pct ⇒ Float?
Returns field goal percentage during matchup.
-
#matchup_fga ⇒ Float?
Returns field goals attempted during matchup.
-
#matchup_fgm ⇒ Float?
Returns field goals made during matchup.
-
#matchup_fta ⇒ Float?
Returns free throws attempted during matchup.
-
#matchup_ftm ⇒ Float?
Returns free throws made during matchup.
-
#matchup_min ⇒ Float?
Returns matchup minutes.
-
#matchup_tov ⇒ Float?
Returns turnovers during matchup.
-
#off_player_id ⇒ Integer?
Returns the offensive player ID.
-
#off_player_name ⇒ String?
Returns the offensive player name.
-
#partial_poss ⇒ Float?
Returns partial possessions.
-
#player_pts ⇒ Float?
Returns points scored by offensive player.
-
#season_id ⇒ String?
Returns the season ID.
-
#sfl ⇒ Float?
Returns shooting fouls drawn.
-
#team_pts ⇒ Float?
Returns team points during matchup.
Instance Method Summary collapse
-
#def_player ⇒ Player?
Returns the defensive player.
-
#off_player ⇒ Player?
Returns the offensive player.
Instance Attribute Details
#def_player_id ⇒ Integer?
Returns the defensive player ID
43 |
# File 'lib/nba/league_season_matchup_stat.rb', line 43 attribute :def_player_id, Shale::Type::Integer |
#def_player_name ⇒ String?
Returns the defensive player name
51 |
# File 'lib/nba/league_season_matchup_stat.rb', line 51 attribute :def_player_name, Shale::Type::String |
#gp ⇒ Integer?
Returns games played
59 |
# File 'lib/nba/league_season_matchup_stat.rb', line 59 attribute :gp, Shale::Type::Integer |
#help_blk ⇒ Float?
Returns help blocks
171 |
# File 'lib/nba/league_season_matchup_stat.rb', line 171 attribute :help_blk, Shale::Type::Float |
#help_fg_pct ⇒ Float?
Returns help field goal percentage
195 |
# File 'lib/nba/league_season_matchup_stat.rb', line 195 attribute :help_fg_pct, Shale::Type::Float |
#help_fga ⇒ Float?
Returns help field goals attempted
187 |
# File 'lib/nba/league_season_matchup_stat.rb', line 187 attribute :help_fga, Shale::Type::Float |
#help_fgm ⇒ Float?
Returns help field goals made
179 |
# File 'lib/nba/league_season_matchup_stat.rb', line 179 attribute :help_fgm, Shale::Type::Float |
#matchup_ast ⇒ Float?
Returns assists during matchup
99 |
# File 'lib/nba/league_season_matchup_stat.rb', line 99 attribute :matchup_ast, Shale::Type::Float |
#matchup_blk ⇒ Float?
Returns blocks during matchup
115 |
# File 'lib/nba/league_season_matchup_stat.rb', line 115 attribute :matchup_blk, Shale::Type::Float |
#matchup_fg3_pct ⇒ Float?
Returns three-point percentage during matchup
163 |
# File 'lib/nba/league_season_matchup_stat.rb', line 163 attribute :matchup_fg3_pct, Shale::Type::Float |
#matchup_fg3a ⇒ Float?
Returns three-pointers attempted during matchup
155 |
# File 'lib/nba/league_season_matchup_stat.rb', line 155 attribute :matchup_fg3a, Shale::Type::Float |
#matchup_fg3m ⇒ Float?
Returns three-pointers made during matchup
147 |
# File 'lib/nba/league_season_matchup_stat.rb', line 147 attribute :matchup_fg3m, Shale::Type::Float |
#matchup_fg_pct ⇒ Float?
Returns field goal percentage during matchup
139 |
# File 'lib/nba/league_season_matchup_stat.rb', line 139 attribute :matchup_fg_pct, Shale::Type::Float |
#matchup_fga ⇒ Float?
Returns field goals attempted during matchup
131 |
# File 'lib/nba/league_season_matchup_stat.rb', line 131 attribute :matchup_fga, Shale::Type::Float |
#matchup_fgm ⇒ Float?
Returns field goals made during matchup
123 |
# File 'lib/nba/league_season_matchup_stat.rb', line 123 attribute :matchup_fgm, Shale::Type::Float |
#matchup_fta ⇒ Float?
Returns free throws attempted during matchup
211 |
# File 'lib/nba/league_season_matchup_stat.rb', line 211 attribute :matchup_fta, Shale::Type::Float |
#matchup_ftm ⇒ Float?
Returns free throws made during matchup
203 |
# File 'lib/nba/league_season_matchup_stat.rb', line 203 attribute :matchup_ftm, Shale::Type::Float |
#matchup_min ⇒ Float?
Returns matchup minutes
67 |
# File 'lib/nba/league_season_matchup_stat.rb', line 67 attribute :matchup_min, Shale::Type::Float |
#matchup_tov ⇒ Float?
Returns turnovers during matchup
107 |
# File 'lib/nba/league_season_matchup_stat.rb', line 107 attribute :matchup_tov, Shale::Type::Float |
#off_player_id ⇒ Integer?
Returns the offensive player ID
27 |
# File 'lib/nba/league_season_matchup_stat.rb', line 27 attribute :off_player_id, Shale::Type::Integer |
#off_player_name ⇒ String?
Returns the offensive player name
35 |
# File 'lib/nba/league_season_matchup_stat.rb', line 35 attribute :off_player_name, Shale::Type::String |
#partial_poss ⇒ Float?
Returns partial possessions
75 |
# File 'lib/nba/league_season_matchup_stat.rb', line 75 attribute :partial_poss, Shale::Type::Float |
#player_pts ⇒ Float?
Returns points scored by offensive player
83 |
# File 'lib/nba/league_season_matchup_stat.rb', line 83 attribute :player_pts, Shale::Type::Float |
#season_id ⇒ String?
Returns the season ID
19 |
# File 'lib/nba/league_season_matchup_stat.rb', line 19 attribute :season_id, Shale::Type::String |
#sfl ⇒ Float?
Returns shooting fouls drawn
219 |
# File 'lib/nba/league_season_matchup_stat.rb', line 219 attribute :sfl, Shale::Type::Float |
#team_pts ⇒ Float?
Returns team points during matchup
91 |
# File 'lib/nba/league_season_matchup_stat.rb', line 91 attribute :team_pts, Shale::Type::Float |
Instance Method Details
#def_player ⇒ Player?
Returns the defensive player
237 238 239 |
# File 'lib/nba/league_season_matchup_stat.rb', line 237 def def_player Players.find(def_player_id) end |
#off_player ⇒ Player?
Returns the offensive player
227 228 229 |
# File 'lib/nba/league_season_matchup_stat.rb', line 227 def off_player Players.find(off_player_id) end |