Class: NBA::LeagueDashTeamShotLocationStat

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

Overview

Represents league-wide team shot location statistics

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#above_the_break_3_fg_pctFloat?

Returns above the break 3 field goal percentage

Examples:

stat.above_the_break_3_fg_pct #=> 0.357


170
# File 'lib/nba/league_dash_team_shot_location_stat.rb', line 170

attribute :above_the_break_3_fg_pct, Shale::Type::Float

#above_the_break_3_fgaFloat?

Returns above the break 3 field goals attempted

Examples:

stat.above_the_break_3_fga #=> 25.8


162
# File 'lib/nba/league_dash_team_shot_location_stat.rb', line 162

attribute :above_the_break_3_fga, Shale::Type::Float

#above_the_break_3_fgmFloat?

Returns above the break 3 field goals made

Examples:

stat.above_the_break_3_fgm #=> 9.2


154
# File 'lib/nba/league_dash_team_shot_location_stat.rb', line 154

attribute :above_the_break_3_fgm, Shale::Type::Float

#backcourt_fg_pctFloat?

Returns backcourt field goal percentage

Examples:

stat.backcourt_fg_pct #=> 0.0


194
# File 'lib/nba/league_dash_team_shot_location_stat.rb', line 194

attribute :backcourt_fg_pct, Shale::Type::Float

#backcourt_fgaFloat?

Returns backcourt field goals attempted

Examples:

stat.backcourt_fga #=> 0.2


186
# File 'lib/nba/league_dash_team_shot_location_stat.rb', line 186

attribute :backcourt_fga, Shale::Type::Float

#backcourt_fgmFloat?

Returns backcourt field goals made

Examples:

stat.backcourt_fgm #=> 0.0


178
# File 'lib/nba/league_dash_team_shot_location_stat.rb', line 178

attribute :backcourt_fgm, Shale::Type::Float

#corner_3_fg_pctFloat?

Returns corner 3 field goal percentage (combined left and right)

Examples:

stat.corner_3_fg_pct #=> 0.390


218
# File 'lib/nba/league_dash_team_shot_location_stat.rb', line 218

attribute :corner_3_fg_pct, Shale::Type::Float

#corner_3_fgaFloat?

Returns corner 3 field goals attempted (combined left and right)

Examples:

stat.corner_3_fga #=> 5.9


210
# File 'lib/nba/league_dash_team_shot_location_stat.rb', line 210

attribute :corner_3_fga, Shale::Type::Float

#corner_3_fgmFloat?

Returns corner 3 field goals made (combined left and right)

Examples:

stat.corner_3_fgm #=> 2.3


202
# File 'lib/nba/league_dash_team_shot_location_stat.rb', line 202

attribute :corner_3_fgm, Shale::Type::Float

#in_the_paint_non_ra_fg_pctFloat?

Returns in the paint (non-RA) field goal percentage

Examples:

stat.in_the_paint_non_ra_fg_pct #=> 0.408


74
# File 'lib/nba/league_dash_team_shot_location_stat.rb', line 74

attribute :in_the_paint_non_ra_fg_pct, Shale::Type::Float

#in_the_paint_non_ra_fgaFloat?

Returns in the paint (non-RA) field goals attempted

Examples:

stat.in_the_paint_non_ra_fga #=> 14.2


66
# File 'lib/nba/league_dash_team_shot_location_stat.rb', line 66

attribute :in_the_paint_non_ra_fga, Shale::Type::Float

#in_the_paint_non_ra_fgmFloat?

Returns in the paint (non-RA) field goals made

Examples:

stat.in_the_paint_non_ra_fgm #=> 5.8


58
# File 'lib/nba/league_dash_team_shot_location_stat.rb', line 58

attribute :in_the_paint_non_ra_fgm, Shale::Type::Float

#left_corner_3_fg_pctFloat?

Returns left corner 3 field goal percentage

Examples:

stat.left_corner_3_fg_pct #=> 0.387


122
# File 'lib/nba/league_dash_team_shot_location_stat.rb', line 122

attribute :left_corner_3_fg_pct, Shale::Type::Float

#left_corner_3_fgaFloat?

Returns left corner 3 field goals attempted

Examples:

stat.left_corner_3_fga #=> 3.1


114
# File 'lib/nba/league_dash_team_shot_location_stat.rb', line 114

attribute :left_corner_3_fga, Shale::Type::Float

#left_corner_3_fgmFloat?

Returns left corner 3 field goals made

Examples:

stat.left_corner_3_fgm #=> 1.2


106
# File 'lib/nba/league_dash_team_shot_location_stat.rb', line 106

attribute :left_corner_3_fgm, Shale::Type::Float

#mid_range_fg_pctFloat?

Returns mid-range field goal percentage

Examples:

stat.mid_range_fg_pct #=> 0.398


98
# File 'lib/nba/league_dash_team_shot_location_stat.rb', line 98

attribute :mid_range_fg_pct, Shale::Type::Float

#mid_range_fgaFloat?

Returns mid-range field goals attempted

Examples:

stat.mid_range_fga #=> 11.3


90
# File 'lib/nba/league_dash_team_shot_location_stat.rb', line 90

attribute :mid_range_fga, Shale::Type::Float

#mid_range_fgmFloat?

Returns mid-range field goals made

Examples:

stat.mid_range_fgm #=> 4.5


82
# File 'lib/nba/league_dash_team_shot_location_stat.rb', line 82

attribute :mid_range_fgm, Shale::Type::Float

#restricted_area_fg_pctFloat?

Returns restricted area field goal percentage

Examples:

stat.restricted_area_fg_pct #=> 0.613


50
# File 'lib/nba/league_dash_team_shot_location_stat.rb', line 50

attribute :restricted_area_fg_pct, Shale::Type::Float

#restricted_area_fgaFloat?

Returns restricted area field goals attempted

Examples:

stat.restricted_area_fga #=> 24.8


42
# File 'lib/nba/league_dash_team_shot_location_stat.rb', line 42

attribute :restricted_area_fga, Shale::Type::Float

#restricted_area_fgmFloat?

Returns restricted area field goals made

Examples:

stat.restricted_area_fgm #=> 15.2


34
# File 'lib/nba/league_dash_team_shot_location_stat.rb', line 34

attribute :restricted_area_fgm, Shale::Type::Float

#right_corner_3_fg_pctFloat?

Returns right corner 3 field goal percentage

Examples:

stat.right_corner_3_fg_pct #=> 0.393


146
# File 'lib/nba/league_dash_team_shot_location_stat.rb', line 146

attribute :right_corner_3_fg_pct, Shale::Type::Float

#right_corner_3_fgaFloat?

Returns right corner 3 field goals attempted

Examples:

stat.right_corner_3_fga #=> 2.8


138
# File 'lib/nba/league_dash_team_shot_location_stat.rb', line 138

attribute :right_corner_3_fga, Shale::Type::Float

#right_corner_3_fgmFloat?

Returns right corner 3 field goals made

Examples:

stat.right_corner_3_fgm #=> 1.1


130
# File 'lib/nba/league_dash_team_shot_location_stat.rb', line 130

attribute :right_corner_3_fgm, Shale::Type::Float

#team_idInteger?

Returns the team ID

Examples:

stat.team_id #=> 1610612744


18
# File 'lib/nba/league_dash_team_shot_location_stat.rb', line 18

attribute :team_id, Shale::Type::Integer

#team_nameString?

Returns the team name

Examples:

stat.team_name #=> "Golden State Warriors"


26
# File 'lib/nba/league_dash_team_shot_location_stat.rb', line 26

attribute :team_name, Shale::Type::String

Instance Method Details

#teamTeam?

Returns the team

Examples:

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


226
227
228
# File 'lib/nba/league_dash_team_shot_location_stat.rb', line 226

def team
  Teams.find(team_id)
end