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

Returns:

  • (Float, nil)

    above the break 3 field goal percentage



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

Returns:

  • (Float, nil)

    above the break 3 field goals attempted



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

Returns:

  • (Float, nil)

    above the break 3 field goals made



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

Returns:

  • (Float, nil)

    backcourt field goal percentage



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

Returns:

  • (Float, nil)

    backcourt field goals attempted



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

Returns:

  • (Float, nil)

    backcourt field goals made



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

Returns:

  • (Float, nil)

    corner 3 field goal percentage



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

Returns:

  • (Float, nil)

    corner 3 field goals attempted



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

Returns:

  • (Float, nil)

    corner 3 field goals made



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

Returns:

  • (Float, nil)

    in the paint field goal percentage



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

Returns:

  • (Float, nil)

    in the paint field goals attempted



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

Returns:

  • (Float, nil)

    in the paint field goals made



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

Returns:

  • (Float, nil)

    left corner 3 field goal percentage



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

Returns:

  • (Float, nil)

    left corner 3 field goals attempted



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

Returns:

  • (Float, nil)

    left corner 3 field goals made



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

Returns:

  • (Float, nil)

    mid-range field goal percentage



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

Returns:

  • (Float, nil)

    mid-range field goals attempted



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

Returns:

  • (Float, nil)

    mid-range field goals made



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

Returns:

  • (Float, nil)

    restricted area field goal percentage



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

Returns:

  • (Float, nil)

    restricted area field goals attempted



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

Returns:

  • (Float, nil)

    restricted area field goals made



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

Returns:

  • (Float, nil)

    right corner 3 field goal percentage



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

Returns:

  • (Float, nil)

    right corner 3 field goals attempted



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

Returns:

  • (Float, nil)

    right corner 3 field goals made



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

Returns:

  • (Integer, nil)

    the team’s ID



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"

Returns:

  • (String, nil)

    the team’s name



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

Returns:

  • (Team, nil)

    the team object



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

def team
  Teams.find(team_id)
end