Class: NBA::LeagueDashPtDefendStat
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::LeagueDashPtDefendStat
- Defined in:
- lib/nba/league_dash_pt_defend_stat.rb
Overview
Represents league-wide player defensive statistics
Instance Attribute Summary collapse
-
#age ⇒ Float?
Returns the player’s age.
-
#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.
-
#freq ⇒ Float?
Returns frequency percentage.
-
#g ⇒ Integer?
Returns games (alias for games played).
-
#gp ⇒ Integer?
Returns games played.
-
#normal_fg_pct ⇒ Float?
Returns normal (uncontested) field goal percentage.
-
#pct_plusminus ⇒ Float?
Returns percentage plus/minus (difference from normal).
-
#player_id ⇒ Integer?
Returns the player ID (close defender).
-
#player_name ⇒ String?
Returns the player name.
-
#player_position ⇒ String?
Returns the player’s position.
-
#team_abbreviation ⇒ String?
Returns the player’s last team abbreviation.
-
#team_id ⇒ Integer?
Returns the player’s last team ID.
Instance Method Summary collapse
-
#player ⇒ Player?
Returns the player.
-
#team ⇒ Team?
Returns the team.
Instance Attribute Details
#age ⇒ Float?
Returns the player’s age
59 |
# File 'lib/nba/league_dash_pt_defend_stat.rb', line 59 attribute :age, Shale::Type::Float |
#d_fg_pct ⇒ Float?
Returns defended field goal percentage
107 |
# File 'lib/nba/league_dash_pt_defend_stat.rb', line 107 attribute :d_fg_pct, Shale::Type::Float |
#d_fga ⇒ Float?
Returns defended field goals attempted
99 |
# File 'lib/nba/league_dash_pt_defend_stat.rb', line 99 attribute :d_fga, Shale::Type::Float |
#d_fgm ⇒ Float?
Returns defended field goals made
91 |
# File 'lib/nba/league_dash_pt_defend_stat.rb', line 91 attribute :d_fgm, Shale::Type::Float |
#freq ⇒ Float?
Returns frequency percentage
83 |
# File 'lib/nba/league_dash_pt_defend_stat.rb', line 83 attribute :freq, Shale::Type::Float |
#g ⇒ Integer?
Returns games (alias for games played)
75 |
# File 'lib/nba/league_dash_pt_defend_stat.rb', line 75 attribute :g, Shale::Type::Integer |
#gp ⇒ Integer?
Returns games played
67 |
# File 'lib/nba/league_dash_pt_defend_stat.rb', line 67 attribute :gp, Shale::Type::Integer |
#normal_fg_pct ⇒ Float?
Returns normal (uncontested) field goal percentage
115 |
# File 'lib/nba/league_dash_pt_defend_stat.rb', line 115 attribute :normal_fg_pct, Shale::Type::Float |
#pct_plusminus ⇒ Float?
Returns percentage plus/minus (difference from normal)
123 |
# File 'lib/nba/league_dash_pt_defend_stat.rb', line 123 attribute :pct_plusminus, Shale::Type::Float |
#player_id ⇒ Integer?
Returns the player ID (close defender)
19 |
# File 'lib/nba/league_dash_pt_defend_stat.rb', line 19 attribute :player_id, Shale::Type::Integer |
#player_name ⇒ String?
Returns the player name
27 |
# File 'lib/nba/league_dash_pt_defend_stat.rb', line 27 attribute :player_name, Shale::Type::String |
#player_position ⇒ String?
Returns the player’s position
51 |
# File 'lib/nba/league_dash_pt_defend_stat.rb', line 51 attribute :player_position, Shale::Type::String |
#team_abbreviation ⇒ String?
Returns the player’s last team abbreviation
43 |
# File 'lib/nba/league_dash_pt_defend_stat.rb', line 43 attribute :team_abbreviation, Shale::Type::String |
#team_id ⇒ Integer?
Returns the player’s last team ID
35 |
# File 'lib/nba/league_dash_pt_defend_stat.rb', line 35 attribute :team_id, Shale::Type::Integer |
Instance Method Details
#player ⇒ Player?
Returns the player
131 132 133 |
# File 'lib/nba/league_dash_pt_defend_stat.rb', line 131 def player Players.find(player_id) end |
#team ⇒ Team?
Returns the team
141 142 143 |
# File 'lib/nba/league_dash_pt_defend_stat.rb', line 141 def team Teams.find(team_id) end |