Class: NBA::EstimatedMetricsStat
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::EstimatedMetricsStat
- Defined in:
- lib/nba/estimated_metrics_stat.rb
Overview
Represents player estimated metrics
Instance Attribute Summary collapse
-
#e_ast_ratio ⇒ Float
Returns estimated assist ratio.
-
#e_def_rating ⇒ Float
Returns estimated defensive rating.
-
#e_dreb_pct ⇒ Float
Returns estimated defensive rebound percentage.
-
#e_net_rating ⇒ Float
Returns estimated net rating.
-
#e_off_rating ⇒ Float
Returns estimated offensive rating.
-
#e_oreb_pct ⇒ Float
Returns estimated offensive rebound percentage.
-
#e_pace ⇒ Float
Returns estimated pace.
-
#e_reb_pct ⇒ Float
Returns estimated rebound percentage.
-
#e_tov_pct ⇒ Float
Returns estimated turnover percentage.
-
#e_usg_pct ⇒ Float
Returns estimated usage percentage.
-
#gp ⇒ Integer
Returns games played.
-
#l ⇒ Integer
Returns losses.
-
#min ⇒ Float
Returns minutes per game.
-
#player_id ⇒ Integer
Returns the player ID.
-
#player_name ⇒ String
Returns the player name.
-
#w ⇒ Integer
Returns wins.
-
#w_pct ⇒ Float
Returns win percentage.
Instance Method Summary collapse
-
#player ⇒ Player?
Returns the player object.
Instance Attribute Details
#e_ast_ratio ⇒ Float
Returns estimated assist ratio
92 |
# File 'lib/nba/estimated_metrics_stat.rb', line 92 attribute :e_ast_ratio, Shale::Type::Float |
#e_def_rating ⇒ Float
Returns estimated defensive rating
76 |
# File 'lib/nba/estimated_metrics_stat.rb', line 76 attribute :e_def_rating, Shale::Type::Float |
#e_dreb_pct ⇒ Float
Returns estimated defensive rebound percentage
108 |
# File 'lib/nba/estimated_metrics_stat.rb', line 108 attribute :e_dreb_pct, Shale::Type::Float |
#e_net_rating ⇒ Float
Returns estimated net rating
84 |
# File 'lib/nba/estimated_metrics_stat.rb', line 84 attribute :e_net_rating, Shale::Type::Float |
#e_off_rating ⇒ Float
Returns estimated offensive rating
68 |
# File 'lib/nba/estimated_metrics_stat.rb', line 68 attribute :e_off_rating, Shale::Type::Float |
#e_oreb_pct ⇒ Float
Returns estimated offensive rebound percentage
100 |
# File 'lib/nba/estimated_metrics_stat.rb', line 100 attribute :e_oreb_pct, Shale::Type::Float |
#e_pace ⇒ Float
Returns estimated pace
140 |
# File 'lib/nba/estimated_metrics_stat.rb', line 140 attribute :e_pace, Shale::Type::Float |
#e_reb_pct ⇒ Float
Returns estimated rebound percentage
116 |
# File 'lib/nba/estimated_metrics_stat.rb', line 116 attribute :e_reb_pct, Shale::Type::Float |
#e_tov_pct ⇒ Float
Returns estimated turnover percentage
124 |
# File 'lib/nba/estimated_metrics_stat.rb', line 124 attribute :e_tov_pct, Shale::Type::Float |
#e_usg_pct ⇒ Float
Returns estimated usage percentage
132 |
# File 'lib/nba/estimated_metrics_stat.rb', line 132 attribute :e_usg_pct, Shale::Type::Float |
#gp ⇒ Integer
Returns games played
28 |
# File 'lib/nba/estimated_metrics_stat.rb', line 28 attribute :gp, Shale::Type::Integer |
#l ⇒ Integer
Returns losses
44 |
# File 'lib/nba/estimated_metrics_stat.rb', line 44 attribute :l, Shale::Type::Integer |
#min ⇒ Float
Returns minutes per game
60 |
# File 'lib/nba/estimated_metrics_stat.rb', line 60 attribute :min, Shale::Type::Float |
#player_id ⇒ Integer
Returns the player ID
12 |
# File 'lib/nba/estimated_metrics_stat.rb', line 12 attribute :player_id, Shale::Type::Integer |
#player_name ⇒ String
Returns the player name
20 |
# File 'lib/nba/estimated_metrics_stat.rb', line 20 attribute :player_name, Shale::Type::String |
#w ⇒ Integer
Returns wins
36 |
# File 'lib/nba/estimated_metrics_stat.rb', line 36 attribute :w, Shale::Type::Integer |
#w_pct ⇒ Float
Returns win percentage
52 |
# File 'lib/nba/estimated_metrics_stat.rb', line 52 attribute :w_pct, Shale::Type::Float |
Instance Method Details
#player ⇒ Player?
Returns the player object
148 149 150 |
# File 'lib/nba/estimated_metrics_stat.rb', line 148 def player Players.find(player_id) end |