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


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


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


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


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


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


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


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

attribute :oreb, Shale::Type::Float

#overallString?

Returns the overall category

Examples:

stat.overall #=> "Overall"


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


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"


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


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"


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"


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"


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


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


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"


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


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


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


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


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 ...>


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

def team
  Teams.find(team_id)
end