Class: NBA::TeamReboundStat

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

Overview

Represents team tracking rebound statistics

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#c_drebFloat?

Returns contested defensive rebounds per game

Examples:

stat.c_dreb #=> 2.1

Returns:

  • (Float, nil)

    contested defensive rebounds per game



129
# File 'lib/nba/team_rebound_stat.rb', line 129

attribute :c_dreb, Shale::Type::Float

#c_orebFloat?

Returns contested offensive rebounds per game

Examples:

stat.c_oreb #=> 0.8

Returns:

  • (Float, nil)

    contested offensive rebounds per game



121
# File 'lib/nba/team_rebound_stat.rb', line 121

attribute :c_oreb, Shale::Type::Float

#c_rebFloat?

Returns contested total rebounds per game

Examples:

stat.c_reb #=> 2.9

Returns:

  • (Float, nil)

    contested total rebounds per game



137
# File 'lib/nba/team_rebound_stat.rb', line 137

attribute :c_reb, Shale::Type::Float

#c_reb_pctFloat?

Returns contested rebound percentage

Examples:

stat.c_reb_pct #=> 0.509

Returns:

  • (Float, nil)

    contested rebound percentage



145
# File 'lib/nba/team_rebound_stat.rb', line 145

attribute :c_reb_pct, Shale::Type::Float

#drebFloat?

Returns defensive rebounds per game

Examples:

stat.dreb #=> 4.5

Returns:

  • (Float, nil)

    defensive rebounds per game



105
# File 'lib/nba/team_rebound_stat.rb', line 105

attribute :dreb, Shale::Type::Float

#gInteger?

Returns the number of games

Examples:

stat.g #=> 74

Returns:

  • (Integer, nil)

    the number of games



41
# File 'lib/nba/team_rebound_stat.rb', line 41

attribute :g, Shale::Type::Integer

#orebFloat?

Returns offensive rebounds per game

Examples:

stat.oreb #=> 1.2

Returns:

  • (Float, nil)

    offensive rebounds per game



97
# File 'lib/nba/team_rebound_stat.rb', line 97

attribute :oreb, Shale::Type::Float

#overallString?

Returns the overall category

Examples:

stat.overall #=> "Overall"

Returns:

  • (String, nil)

    the overall category



57
# File 'lib/nba/team_rebound_stat.rb', line 57

attribute :overall, Shale::Type::String

#rebFloat?

Returns total rebounds per game

Examples:

stat.reb #=> 5.7

Returns:

  • (Float, nil)

    total rebounds per game



113
# File 'lib/nba/team_rebound_stat.rb', line 113

attribute :reb, Shale::Type::Float

#reb_dist_rangeString?

Returns the rebound distance range

Examples:

stat.reb_dist_range #=> "0-6 Feet"

Returns:

  • (String, nil)

    the rebound distance range



65
# File 'lib/nba/team_rebound_stat.rb', line 65

attribute :reb_dist_range, Shale::Type::String

#reb_frequencyFloat?

Returns the rebound frequency

Examples:

stat.reb_frequency #=> 0.25

Returns:

  • (Float, nil)

    the rebound frequency



89
# File 'lib/nba/team_rebound_stat.rb', line 89

attribute :reb_frequency, Shale::Type::Float

#reb_num_contesting_rangeString?

Returns the number of contesting players range

Examples:

stat.reb_num_contesting_range #=> "0 Contests"

Returns:

  • (String, nil)

    the number of contesting players range



49
# File 'lib/nba/team_rebound_stat.rb', line 49

attribute :reb_num_contesting_range, Shale::Type::String

#shot_dist_rangeString?

Returns the shot distance range

Examples:

stat.shot_dist_range #=> "0-6 Feet"

Returns:

  • (String, nil)

    the shot distance range



73
# File 'lib/nba/team_rebound_stat.rb', line 73

attribute :shot_dist_range, Shale::Type::String

#shot_type_rangeString?

Returns the shot type range

Examples:

stat.shot_type_range #=> "2PT FGs"

Returns:

  • (String, nil)

    the shot type range



81
# File 'lib/nba/team_rebound_stat.rb', line 81

attribute :shot_type_range, Shale::Type::String

#sort_orderInteger?

Returns the sort order for the row

Examples:

stat.sort_order #=> 1

Returns:

  • (Integer, nil)

    the sort order for the row



33
# File 'lib/nba/team_rebound_stat.rb', line 33

attribute :sort_order, Shale::Type::Integer

#team_idInteger?

Returns the team ID

Examples:

stat.team_id #=> 1610612744

Returns:

  • (Integer, nil)

    the team’s ID



17
# File 'lib/nba/team_rebound_stat.rb', line 17

attribute :team_id, Shale::Type::Integer

#team_nameString?

Returns the team name

Examples:

stat.team_name #=> "Golden State Warriors"

Returns:

  • (String, nil)

    the team’s name



25
# File 'lib/nba/team_rebound_stat.rb', line 25

attribute :team_name, Shale::Type::String

#uc_drebFloat?

Returns uncontested defensive rebounds per game

Examples:

stat.uc_dreb #=> 2.4

Returns:

  • (Float, nil)

    uncontested defensive rebounds per game



161
# File 'lib/nba/team_rebound_stat.rb', line 161

attribute :uc_dreb, Shale::Type::Float

#uc_orebFloat?

Returns uncontested offensive rebounds per game

Examples:

stat.uc_oreb #=> 0.4

Returns:

  • (Float, nil)

    uncontested offensive rebounds per game



153
# File 'lib/nba/team_rebound_stat.rb', line 153

attribute :uc_oreb, Shale::Type::Float

#uc_rebFloat?

Returns uncontested total rebounds per game

Examples:

stat.uc_reb #=> 2.8

Returns:

  • (Float, nil)

    uncontested total rebounds per game



169
# File 'lib/nba/team_rebound_stat.rb', line 169

attribute :uc_reb, Shale::Type::Float

#uc_reb_pctFloat?

Returns uncontested rebound percentage

Examples:

stat.uc_reb_pct #=> 0.491

Returns:

  • (Float, nil)

    uncontested rebound percentage



177
# File 'lib/nba/team_rebound_stat.rb', line 177

attribute :uc_reb_pct, Shale::Type::Float

Instance Method Details

#teamTeam?

Returns the team associated with this stat

Examples:

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

Returns:

  • (Team, nil)

    the Team object



185
186
187
# File 'lib/nba/team_rebound_stat.rb', line 185

def team
  Teams.find(team_id)
end