Class: NBA::PassStat
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::PassStat
- Defined in:
- lib/nba/pass_stat.rb
Overview
Represents player tracking pass statistics
Instance Attribute Summary collapse
-
#ast ⇒ Float
Returns assists per game.
-
#fg2_pct ⇒ Float
Returns two-point percentage following pass.
-
#fg2a ⇒ Float
Returns two-pointers attempted following pass.
-
#fg2m ⇒ Float
Returns two-pointers made following pass.
-
#fg3_pct ⇒ Float
Returns three-point percentage following pass.
-
#fg3a ⇒ Float
Returns three-pointers attempted following pass.
-
#fg3m ⇒ Float
Returns three-pointers made following pass.
-
#fg_pct ⇒ Float
Returns field goal percentage following pass.
-
#fga ⇒ Float
Returns field goals attempted following pass.
-
#fgm ⇒ Float
Returns field goals made following pass.
-
#frequency ⇒ Float
Returns the frequency percentage.
-
#g ⇒ Integer
Returns games.
-
#gp ⇒ Integer
Returns games played.
-
#pass ⇒ Float
Returns passes per game.
-
#pass_teammate_player_id ⇒ Integer
Returns the pass partner player ID.
-
#pass_to ⇒ String
Returns the pass recipient or passer name.
-
#pass_type ⇒ String
Returns the type of pass.
-
#player_id ⇒ Integer
Returns the player ID.
-
#player_name_last_first ⇒ String
Returns the player name in “Last, First” format.
-
#team_abbreviation ⇒ String
Returns the team abbreviation.
-
#team_id ⇒ Integer
Returns the team ID.
Instance Method Summary collapse
-
#player ⇒ Player?
Returns the player object.
-
#team ⇒ Team?
Returns the team object.
-
#teammate ⇒ Player?
Returns the teammate player object.
Instance Attribute Details
#ast ⇒ Float
Returns assists per game
105 |
# File 'lib/nba/pass_stat.rb', line 105 attribute :ast, Shale::Type::Float |
#fg2_pct ⇒ Float
Returns two-point percentage following pass
153 |
# File 'lib/nba/pass_stat.rb', line 153 attribute :fg2_pct, Shale::Type::Float |
#fg2a ⇒ Float
Returns two-pointers attempted following pass
145 |
# File 'lib/nba/pass_stat.rb', line 145 attribute :fg2a, Shale::Type::Float |
#fg2m ⇒ Float
Returns two-pointers made following pass
137 |
# File 'lib/nba/pass_stat.rb', line 137 attribute :fg2m, Shale::Type::Float |
#fg3_pct ⇒ Float
Returns three-point percentage following pass
177 |
# File 'lib/nba/pass_stat.rb', line 177 attribute :fg3_pct, Shale::Type::Float |
#fg3a ⇒ Float
Returns three-pointers attempted following pass
169 |
# File 'lib/nba/pass_stat.rb', line 169 attribute :fg3a, Shale::Type::Float |
#fg3m ⇒ Float
Returns three-pointers made following pass
161 |
# File 'lib/nba/pass_stat.rb', line 161 attribute :fg3m, Shale::Type::Float |
#fg_pct ⇒ Float
Returns field goal percentage following pass
129 |
# File 'lib/nba/pass_stat.rb', line 129 attribute :fg_pct, Shale::Type::Float |
#fga ⇒ Float
Returns field goals attempted following pass
121 |
# File 'lib/nba/pass_stat.rb', line 121 attribute :fga, Shale::Type::Float |
#fgm ⇒ Float
Returns field goals made following pass
113 |
# File 'lib/nba/pass_stat.rb', line 113 attribute :fgm, Shale::Type::Float |
#frequency ⇒ Float
Returns the frequency percentage
89 |
# File 'lib/nba/pass_stat.rb', line 89 attribute :frequency, Shale::Type::Float |
#g ⇒ Integer
Returns games
73 |
# File 'lib/nba/pass_stat.rb', line 73 attribute :g, Shale::Type::Integer |
#gp ⇒ Integer
Returns games played
65 |
# File 'lib/nba/pass_stat.rb', line 65 attribute :gp, Shale::Type::Integer |
#pass ⇒ Float
Returns passes per game
97 |
# File 'lib/nba/pass_stat.rb', line 97 attribute :pass, Shale::Type::Float |
#pass_teammate_player_id ⇒ Integer
Returns the pass partner player ID
41 |
# File 'lib/nba/pass_stat.rb', line 41 attribute :pass_teammate_player_id, Shale::Type::Integer |
#pass_to ⇒ String
Returns the pass recipient or passer name
33 |
# File 'lib/nba/pass_stat.rb', line 33 attribute :pass_to, Shale::Type::String |
#pass_type ⇒ String
Returns the type of pass
81 |
# File 'lib/nba/pass_stat.rb', line 81 attribute :pass_type, Shale::Type::String |
#player_id ⇒ Integer
Returns the player ID
17 |
# File 'lib/nba/pass_stat.rb', line 17 attribute :player_id, Shale::Type::Integer |
#player_name_last_first ⇒ String
Returns the player name in “Last, First” format
25 |
# File 'lib/nba/pass_stat.rb', line 25 attribute :player_name_last_first, Shale::Type::String |
#team_abbreviation ⇒ String
Returns the team abbreviation
57 |
# File 'lib/nba/pass_stat.rb', line 57 attribute :team_abbreviation, Shale::Type::String |
#team_id ⇒ Integer
Returns the team ID
49 |
# File 'lib/nba/pass_stat.rb', line 49 attribute :team_id, Shale::Type::Integer |
Instance Method Details
#player ⇒ Player?
Returns the player object
185 186 187 |
# File 'lib/nba/pass_stat.rb', line 185 def player Players.find(player_id) end |
#team ⇒ Team?
Returns the team object
205 206 207 |
# File 'lib/nba/pass_stat.rb', line 205 def team Teams.find(team_id) end |
#teammate ⇒ Player?
Returns the teammate player object
195 196 197 |
# File 'lib/nba/pass_stat.rb', line 195 def teammate Players.find(pass_teammate_player_id) end |