Class: NBA::LeagueWideShotStat

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

Overview

Represents league-wide shot data

Instance Attribute Summary collapse

Instance Attribute Details

#fg_pctFloat

Returns field goal percentage

Examples:

stat.fg_pct #=> 0.433


60
# File 'lib/nba/league_wide_shot_stat.rb', line 60

attribute :fg_pct, Shale::Type::Float

#fgaInteger

Returns field goals attempted

Examples:

stat.fga #=> 1500


44
# File 'lib/nba/league_wide_shot_stat.rb', line 44

attribute :fga, Shale::Type::Integer

#fgmInteger

Returns field goals made

Examples:

stat.fgm #=> 650


52
# File 'lib/nba/league_wide_shot_stat.rb', line 52

attribute :fgm, Shale::Type::Integer

#grid_typeString

Returns the grid type

Examples:

stat.grid_type #=> "Shot Zone Basic"


12
# File 'lib/nba/league_wide_shot_stat.rb', line 12

attribute :grid_type, Shale::Type::String

#shot_zone_areaString

Returns the shot zone area

Examples:

stat.shot_zone_area #=> "Left Side"


28
# File 'lib/nba/league_wide_shot_stat.rb', line 28

attribute :shot_zone_area, Shale::Type::String

#shot_zone_basicString

Returns the basic shot zone

Examples:

stat.shot_zone_basic #=> "Mid-Range"


20
# File 'lib/nba/league_wide_shot_stat.rb', line 20

attribute :shot_zone_basic, Shale::Type::String

#shot_zone_rangeString

Returns the shot zone range

Examples:

stat.shot_zone_range #=> "16-24 ft."


36
# File 'lib/nba/league_wide_shot_stat.rb', line 36

attribute :shot_zone_range, Shale::Type::String