Class: NBA::TeamEstimatedMetricsStat

Inherits:
Shale::Mapper
  • Object
show all
Defined in:
lib/nba/team_estimated_metrics_stat.rb

Overview

Represents team estimated metrics

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#e_ast_ratio ⇒ Float

Returns estimated assist ratio

Examples:

stat.e_ast_ratio #=> 18.5

Returns:

  • (Float) —

    estimated assist ratio



102
# File 'lib/nba/team_estimated_metrics_stat.rb', line 102

attribute :e_ast_ratio, Shale::Type::Float

#e_def_rating ⇒ Float

Returns estimated defensive rating

Examples:

stat.e_def_rating #=> 110.2

Returns:

  • (Float) —

    estimated defensive rating



78
# File 'lib/nba/team_estimated_metrics_stat.rb', line 78

attribute :e_def_rating, Shale::Type::Float

#e_dreb_pct ⇒ Float

Returns estimated defensive rebound percentage

Examples:

stat.e_dreb_pct #=> 75.5

Returns:

  • (Float) —

    estimated defensive rebound percentage



118
# File 'lib/nba/team_estimated_metrics_stat.rb', line 118

attribute :e_dreb_pct, Shale::Type::Float

#e_net_rating ⇒ Float

Returns estimated net rating

Examples:

stat.e_net_rating #=> 7.3

Returns:

  • (Float) —

    estimated net rating



86
# File 'lib/nba/team_estimated_metrics_stat.rb', line 86

attribute :e_net_rating, Shale::Type::Float

#e_off_rating ⇒ Float

Returns estimated offensive rating

Examples:

stat.e_off_rating #=> 117.5

Returns:

  • (Float) —

    estimated offensive rating



70
# File 'lib/nba/team_estimated_metrics_stat.rb', line 70

attribute :e_off_rating, Shale::Type::Float

#e_oreb_pct ⇒ Float

Returns estimated offensive rebound percentage

Examples:

stat.e_oreb_pct #=> 25.5

Returns:

  • (Float) —

    estimated offensive rebound percentage



110
# File 'lib/nba/team_estimated_metrics_stat.rb', line 110

attribute :e_oreb_pct, Shale::Type::Float

#e_pace ⇒ Float

Returns estimated pace

Examples:

stat.e_pace #=> 101.5

Returns:

  • (Float) —

    estimated pace



94
# File 'lib/nba/team_estimated_metrics_stat.rb', line 94

attribute :e_pace, Shale::Type::Float

#e_reb_pct ⇒ Float

Returns estimated rebound percentage

Examples:

stat.e_reb_pct #=> 50.5

Returns:

  • (Float) —

    estimated rebound percentage



126
# File 'lib/nba/team_estimated_metrics_stat.rb', line 126

attribute :e_reb_pct, Shale::Type::Float

#e_tm_tov_pct ⇒ Float

Returns estimated team turnover percentage

Examples:

stat.e_tm_tov_pct #=> 11.5

Returns:

  • (Float) —

    estimated team turnover percentage



134
# File 'lib/nba/team_estimated_metrics_stat.rb', line 134

attribute :e_tm_tov_pct, Shale::Type::Float

#gp ⇒ Integer

Returns games played

Examples:

stat.gp #=> 82

Returns:

  • (Integer) —

    games played



30
# File 'lib/nba/team_estimated_metrics_stat.rb', line 30

attribute :gp, Shale::Type::Integer

#l ⇒ Integer

Returns losses

Examples:

stat.l #=> 36

Returns:

  • (Integer) —

    losses



46
# File 'lib/nba/team_estimated_metrics_stat.rb', line 46

attribute :l, Shale::Type::Integer

#min ⇒ Float

Returns minutes per game

Examples:

stat.min #=> 48.0

Returns:

  • (Float) —

    minutes



62
# File 'lib/nba/team_estimated_metrics_stat.rb', line 62

attribute :min, Shale::Type::Float

#team_id ⇒ Integer

Returns the team ID

Examples:

stat.team_id #=> 1610612744

Returns:

  • (Integer) —

    the team ID



14
# File 'lib/nba/team_estimated_metrics_stat.rb', line 14

attribute :team_id, Shale::Type::Integer

#team_name ⇒ String

Returns the team name

Examples:

stat.team_name #=> "Golden State Warriors"

Returns:

  • (String) —

    the team name



22
# File 'lib/nba/team_estimated_metrics_stat.rb', line 22

attribute :team_name, Shale::Type::String

#w ⇒ Integer

Returns wins

Examples:

stat.w #=> 46

Returns:

  • (Integer) —

    wins



38
# File 'lib/nba/team_estimated_metrics_stat.rb', line 38

attribute :w, Shale::Type::Integer

#w_pct ⇒ Float

Returns win percentage

Examples:

stat.w_pct #=> 0.561

Returns:

  • (Float) —

    win percentage



54
# File 'lib/nba/team_estimated_metrics_stat.rb', line 54

attribute :w_pct, Shale::Type::Float

Instance Method Details

#team ⇒ Team?

Returns the team object

Examples:

stat.team #=> #<NBA::Team>

Returns:

  • (Team, nil) —

    the team object



142
143
144
# File 'lib/nba/team_estimated_metrics_stat.rb', line 142

def team
  Teams.find(team_id)
end