Class: NBA::DefensiveShotStat
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::DefensiveShotStat
- Defined in:
- lib/nba/defensive_shot_stat.rb
Overview
Represents a player’s defensive shot statistics
Instance Attribute Summary collapse
-
#close_def_person_id ⇒ Integer?
Returns the defender’s player ID.
-
#d_fg_pct ⇒ Float?
Returns defended field goal percentage.
-
#d_fga ⇒ Float?
Returns defended field goals attempted.
-
#d_fgm ⇒ Float?
Returns defended field goals made.
-
#defense_category ⇒ String?
Returns the defensive category.
-
#freq ⇒ Float?
Returns the frequency.
-
#g ⇒ Integer?
Returns number of games.
-
#gp ⇒ Integer?
Returns games played.
-
#normal_fg_pct ⇒ Float?
Returns normal field goal percentage.
-
#pct_plusminus ⇒ Float?
Returns percentage plus/minus.
Instance Method Summary collapse
-
#player ⇒ Player?
Returns the player who defended the shots.
Instance Attribute Details
#close_def_person_id ⇒ Integer?
Returns the defender’s player ID
18 |
# File 'lib/nba/defensive_shot_stat.rb', line 18 attribute :close_def_person_id, Shale::Type::Integer |
#d_fg_pct ⇒ Float?
Returns defended field goal percentage
74 |
# File 'lib/nba/defensive_shot_stat.rb', line 74 attribute :d_fg_pct, Shale::Type::Float |
#d_fga ⇒ Float?
Returns defended field goals attempted
66 |
# File 'lib/nba/defensive_shot_stat.rb', line 66 attribute :d_fga, Shale::Type::Float |
#d_fgm ⇒ Float?
Returns defended field goals made
58 |
# File 'lib/nba/defensive_shot_stat.rb', line 58 attribute :d_fgm, Shale::Type::Float |
#defense_category ⇒ String?
Returns the defensive category
42 |
# File 'lib/nba/defensive_shot_stat.rb', line 42 attribute :defense_category, Shale::Type::String |
#freq ⇒ Float?
Returns the frequency
50 |
# File 'lib/nba/defensive_shot_stat.rb', line 50 attribute :freq, Shale::Type::Float |
#g ⇒ Integer?
Returns number of games
34 |
# File 'lib/nba/defensive_shot_stat.rb', line 34 attribute :g, Shale::Type::Integer |
#gp ⇒ Integer?
Returns games played
26 |
# File 'lib/nba/defensive_shot_stat.rb', line 26 attribute :gp, Shale::Type::Integer |
#normal_fg_pct ⇒ Float?
Returns normal field goal percentage
82 |
# File 'lib/nba/defensive_shot_stat.rb', line 82 attribute :normal_fg_pct, Shale::Type::Float |
#pct_plusminus ⇒ Float?
Returns percentage plus/minus
90 |
# File 'lib/nba/defensive_shot_stat.rb', line 90 attribute :pct_plusminus, Shale::Type::Float |
Instance Method Details
#player ⇒ Player?
Returns the player who defended the shots
98 99 100 |
# File 'lib/nba/defensive_shot_stat.rb', line 98 def player Players.find(close_def_person_id) end |