Class: NBA::ShotStat
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::ShotStat
- Defined in:
- lib/nba/shot_stat.rb
Overview
Represents a player’s shot statistics
Instance Attribute Summary collapse
-
#efg_pct ⇒ Float?
Returns effective field goal percentage.
-
#fg2_pct ⇒ Float?
Returns 2-point field goal percentage.
-
#fg2a ⇒ Float?
Returns 2-point field goals attempted.
-
#fg2a_frequency ⇒ Float?
Returns 2-point field goal attempt frequency.
-
#fg2m ⇒ Float?
Returns 2-point field goals made.
-
#fg3_pct ⇒ Float?
Returns 3-point field goal percentage.
-
#fg3a ⇒ Float?
Returns 3-point field goals attempted.
-
#fg3a_frequency ⇒ Float?
Returns 3-point field goal attempt frequency.
-
#fg3m ⇒ Float?
Returns 3-point field goals made.
-
#fg_pct ⇒ Float?
Returns field goal percentage.
-
#fga ⇒ Float?
Returns field goals attempted.
-
#fga_frequency ⇒ Float?
Returns field goal attempt frequency.
-
#fgm ⇒ Float?
Returns field goals made.
-
#g ⇒ Integer?
Returns number of games.
-
#gp ⇒ Integer?
Returns games played.
-
#player_id ⇒ Integer?
Returns the player ID.
-
#player_name_last_first ⇒ String?
Returns the player name in “Last, First” format.
-
#shot_type ⇒ String?
Returns the shot type or category.
-
#sort_order ⇒ Integer?
Returns the sort order.
Instance Method Summary collapse
-
#player ⇒ Player?
Returns the player who took the shots.
Instance Attribute Details
#efg_pct ⇒ Float?
Returns effective field goal percentage
98 |
# File 'lib/nba/shot_stat.rb', line 98 attribute :efg_pct, Shale::Type::Float |
#fg2_pct ⇒ Float?
Returns 2-point field goal percentage
130 |
# File 'lib/nba/shot_stat.rb', line 130 attribute :fg2_pct, Shale::Type::Float |
#fg2a ⇒ Float?
Returns 2-point field goals attempted
122 |
# File 'lib/nba/shot_stat.rb', line 122 attribute :fg2a, Shale::Type::Float |
#fg2a_frequency ⇒ Float?
Returns 2-point field goal attempt frequency
106 |
# File 'lib/nba/shot_stat.rb', line 106 attribute :fg2a_frequency, Shale::Type::Float |
#fg2m ⇒ Float?
Returns 2-point field goals made
114 |
# File 'lib/nba/shot_stat.rb', line 114 attribute :fg2m, Shale::Type::Float |
#fg3_pct ⇒ Float?
Returns 3-point field goal percentage
162 |
# File 'lib/nba/shot_stat.rb', line 162 attribute :fg3_pct, Shale::Type::Float |
#fg3a ⇒ Float?
Returns 3-point field goals attempted
154 |
# File 'lib/nba/shot_stat.rb', line 154 attribute :fg3a, Shale::Type::Float |
#fg3a_frequency ⇒ Float?
Returns 3-point field goal attempt frequency
138 |
# File 'lib/nba/shot_stat.rb', line 138 attribute :fg3a_frequency, Shale::Type::Float |
#fg3m ⇒ Float?
Returns 3-point field goals made
146 |
# File 'lib/nba/shot_stat.rb', line 146 attribute :fg3m, Shale::Type::Float |
#fg_pct ⇒ Float?
Returns field goal percentage
90 |
# File 'lib/nba/shot_stat.rb', line 90 attribute :fg_pct, Shale::Type::Float |
#fga ⇒ Float?
Returns field goals attempted
82 |
# File 'lib/nba/shot_stat.rb', line 82 attribute :fga, Shale::Type::Float |
#fga_frequency ⇒ Float?
Returns field goal attempt frequency
66 |
# File 'lib/nba/shot_stat.rb', line 66 attribute :fga_frequency, Shale::Type::Float |
#fgm ⇒ Float?
Returns field goals made
74 |
# File 'lib/nba/shot_stat.rb', line 74 attribute :fgm, Shale::Type::Float |
#g ⇒ Integer?
Returns number of games
50 |
# File 'lib/nba/shot_stat.rb', line 50 attribute :g, Shale::Type::Integer |
#gp ⇒ Integer?
Returns games played
42 |
# File 'lib/nba/shot_stat.rb', line 42 attribute :gp, Shale::Type::Integer |
#player_id ⇒ Integer?
Returns the player ID
18 |
# File 'lib/nba/shot_stat.rb', line 18 attribute :player_id, Shale::Type::Integer |
#player_name_last_first ⇒ String?
Returns the player name in “Last, First” format
26 |
# File 'lib/nba/shot_stat.rb', line 26 attribute :player_name_last_first, Shale::Type::String |
#shot_type ⇒ String?
Returns the shot type or category
58 |
# File 'lib/nba/shot_stat.rb', line 58 attribute :shot_type, Shale::Type::String |
#sort_order ⇒ Integer?
Returns the sort order
34 |
# File 'lib/nba/shot_stat.rb', line 34 attribute :sort_order, Shale::Type::Integer |