Class: NBA::TeamShotStat
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::TeamShotStat
- Defined in:
- lib/nba/team_shot_stat.rb
Overview
Represents team tracking 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.
-
#shot_type ⇒ String?
Returns the shot type or category.
-
#sort_order ⇒ Integer?
Returns the sort order.
-
#team_abbreviation ⇒ String?
Returns the team abbreviation.
-
#team_id ⇒ Integer?
Returns the team ID.
-
#team_name ⇒ String?
Returns the team name.
Instance Method Summary collapse
-
#team ⇒ Team?
Returns the team associated with this stat.
Instance Attribute Details
#efg_pct ⇒ Float?
Returns effective field goal percentage
97 |
# File 'lib/nba/team_shot_stat.rb', line 97 attribute :efg_pct, Shale::Type::Float |
#fg2_pct ⇒ Float?
Returns 2-point field goal percentage
129 |
# File 'lib/nba/team_shot_stat.rb', line 129 attribute :fg2_pct, Shale::Type::Float |
#fg2a ⇒ Float?
Returns 2-point field goals attempted
121 |
# File 'lib/nba/team_shot_stat.rb', line 121 attribute :fg2a, Shale::Type::Float |
#fg2a_frequency ⇒ Float?
Returns 2-point field goal attempt frequency
105 |
# File 'lib/nba/team_shot_stat.rb', line 105 attribute :fg2a_frequency, Shale::Type::Float |
#fg2m ⇒ Float?
Returns 2-point field goals made
113 |
# File 'lib/nba/team_shot_stat.rb', line 113 attribute :fg2m, Shale::Type::Float |
#fg3_pct ⇒ Float?
Returns 3-point field goal percentage
161 |
# File 'lib/nba/team_shot_stat.rb', line 161 attribute :fg3_pct, Shale::Type::Float |
#fg3a ⇒ Float?
Returns 3-point field goals attempted
153 |
# File 'lib/nba/team_shot_stat.rb', line 153 attribute :fg3a, Shale::Type::Float |
#fg3a_frequency ⇒ Float?
Returns 3-point field goal attempt frequency
137 |
# File 'lib/nba/team_shot_stat.rb', line 137 attribute :fg3a_frequency, Shale::Type::Float |
#fg3m ⇒ Float?
Returns 3-point field goals made
145 |
# File 'lib/nba/team_shot_stat.rb', line 145 attribute :fg3m, Shale::Type::Float |
#fg_pct ⇒ Float?
Returns field goal percentage
89 |
# File 'lib/nba/team_shot_stat.rb', line 89 attribute :fg_pct, Shale::Type::Float |
#fga ⇒ Float?
Returns field goals attempted
81 |
# File 'lib/nba/team_shot_stat.rb', line 81 attribute :fga, Shale::Type::Float |
#fga_frequency ⇒ Float?
Returns field goal attempt frequency
65 |
# File 'lib/nba/team_shot_stat.rb', line 65 attribute :fga_frequency, Shale::Type::Float |
#fgm ⇒ Float?
Returns field goals made
73 |
# File 'lib/nba/team_shot_stat.rb', line 73 attribute :fgm, Shale::Type::Float |
#g ⇒ Integer?
Returns number of games
49 |
# File 'lib/nba/team_shot_stat.rb', line 49 attribute :g, Shale::Type::Integer |
#shot_type ⇒ String?
Returns the shot type or category
57 |
# File 'lib/nba/team_shot_stat.rb', line 57 attribute :shot_type, Shale::Type::String |
#sort_order ⇒ Integer?
Returns the sort order
41 |
# File 'lib/nba/team_shot_stat.rb', line 41 attribute :sort_order, Shale::Type::Integer |
#team_abbreviation ⇒ String?
Returns the team abbreviation
33 |
# File 'lib/nba/team_shot_stat.rb', line 33 attribute :team_abbreviation, Shale::Type::String |
#team_id ⇒ Integer?
Returns the team ID
17 |
# File 'lib/nba/team_shot_stat.rb', line 17 attribute :team_id, Shale::Type::Integer |
#team_name ⇒ String?
Returns the team name
25 |
# File 'lib/nba/team_shot_stat.rb', line 25 attribute :team_name, Shale::Type::String |
Instance Method Details
#team ⇒ Team?
Returns the team associated with this stat
169 170 171 |
# File 'lib/nba/team_shot_stat.rb', line 169 def team Teams.find(team_id) end |