Class: NBA::LeagueHustleStatsTeamStat

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

Overview

Represents league-wide hustle statistics for a team

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#box_outsInteger

Returns total box outs

Examples:

stat.box_outs #=> 1501


151
# File 'lib/nba/league_hustle_stats_team_stat.rb', line 151

attribute :box_outs, Shale::Type::Integer

#charges_drawnInteger

Returns charges drawn

Examples:

stat.charges_drawn #=> 42


71
# File 'lib/nba/league_hustle_stats_team_stat.rb', line 71

attribute :charges_drawn, Shale::Type::Integer

#contested_shotsInteger

Returns contested shots

Examples:

stat.contested_shots #=> 2856


39
# File 'lib/nba/league_hustle_stats_team_stat.rb', line 39

attribute :contested_shots, Shale::Type::Integer

#contested_shots_2ptInteger

Returns contested 2-point shots

Examples:

stat.contested_shots_2pt #=> 1842


47
# File 'lib/nba/league_hustle_stats_team_stat.rb', line 47

attribute :contested_shots_2pt, Shale::Type::Integer

#contested_shots_3ptInteger

Returns contested 3-point shots

Examples:

stat.contested_shots_3pt #=> 1014


55
# File 'lib/nba/league_hustle_stats_team_stat.rb', line 55

attribute :contested_shots_3pt, Shale::Type::Integer

#def_boxoutsInteger

Returns defensive box outs

Examples:

stat.def_boxouts #=> 1256


143
# File 'lib/nba/league_hustle_stats_team_stat.rb', line 143

attribute :def_boxouts, Shale::Type::Integer

#def_loose_balls_recoveredInteger

Returns defensive loose balls recovered

Examples:

stat.def_loose_balls_recovered #=> 428


103
# File 'lib/nba/league_hustle_stats_team_stat.rb', line 103

attribute :def_loose_balls_recovered, Shale::Type::Integer

#deflectionsInteger

Returns deflections

Examples:

stat.deflections #=> 1024


63
# File 'lib/nba/league_hustle_stats_team_stat.rb', line 63

attribute :deflections, Shale::Type::Integer

#loose_balls_recoveredInteger

Returns total loose balls recovered

Examples:

stat.loose_balls_recovered #=> 740


111
# File 'lib/nba/league_hustle_stats_team_stat.rb', line 111

attribute :loose_balls_recovered, Shale::Type::Integer

#minFloat

Returns total minutes played

Examples:

stat.min #=> 19680.0


31
# File 'lib/nba/league_hustle_stats_team_stat.rb', line 31

attribute :min, Shale::Type::Float

#off_boxoutsInteger

Returns offensive box outs

Examples:

stat.off_boxouts #=> 245


135
# File 'lib/nba/league_hustle_stats_team_stat.rb', line 135

attribute :off_boxouts, Shale::Type::Integer

#off_loose_balls_recoveredInteger

Returns offensive loose balls recovered

Examples:

stat.off_loose_balls_recovered #=> 312


95
# File 'lib/nba/league_hustle_stats_team_stat.rb', line 95

attribute :off_loose_balls_recovered, Shale::Type::Integer

#pct_box_outs_defFloat

Returns percentage of defensive box outs

Examples:

stat.pct_box_outs_def #=> 0.837


167
# File 'lib/nba/league_hustle_stats_team_stat.rb', line 167

attribute :pct_box_outs_def, Shale::Type::Float

#pct_box_outs_offFloat

Returns percentage of offensive box outs

Examples:

stat.pct_box_outs_off #=> 0.163


159
# File 'lib/nba/league_hustle_stats_team_stat.rb', line 159

attribute :pct_box_outs_off, Shale::Type::Float

#pct_loose_balls_recovered_defFloat

Returns percentage of defensive loose balls recovered

Examples:

stat.pct_loose_balls_recovered_def #=> 0.578


127
# File 'lib/nba/league_hustle_stats_team_stat.rb', line 127

attribute :pct_loose_balls_recovered_def, Shale::Type::Float

#pct_loose_balls_recovered_offFloat

Returns percentage of offensive loose balls recovered

Examples:

stat.pct_loose_balls_recovered_off #=> 0.422


119
# File 'lib/nba/league_hustle_stats_team_stat.rb', line 119

attribute :pct_loose_balls_recovered_off, Shale::Type::Float

#screen_assistsInteger

Returns screen assists

Examples:

stat.screen_assists #=> 1856


79
# File 'lib/nba/league_hustle_stats_team_stat.rb', line 79

attribute :screen_assists, Shale::Type::Integer

#screen_ast_ptsInteger

Returns points from screen assists

Examples:

stat.screen_ast_pts #=> 3712


87
# File 'lib/nba/league_hustle_stats_team_stat.rb', line 87

attribute :screen_ast_pts, Shale::Type::Integer

#team_idInteger

Returns the team ID

Examples:

stat.team_id #=> 1610612744


15
# File 'lib/nba/league_hustle_stats_team_stat.rb', line 15

attribute :team_id, Shale::Type::Integer

#team_nameString

Returns the team name

Examples:

stat.team_name #=> "Golden State Warriors"


23
# File 'lib/nba/league_hustle_stats_team_stat.rb', line 23

attribute :team_name, Shale::Type::String

Instance Method Details

#teamTeam?

Returns the team object

Examples:

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


175
176
177
# File 'lib/nba/league_hustle_stats_team_stat.rb', line 175

def team
  Teams.find(team_id)
end