Class: NBA::AssistTrackerEntry
- Inherits:
-
Shale::Mapper
- Object
- Shale::Mapper
- NBA::AssistTrackerEntry
- Defined in:
- lib/nba/assist_tracker_entry.rb
Overview
Represents an assist tracker entry (pass to score)
Instance Attribute Summary collapse
-
#ast ⇒ Integer
Returns the number of assists.
-
#fg2_pct ⇒ Float
Returns the 2-point field goal percentage.
-
#fg2a ⇒ Integer
Returns the 2-point field goal attempts.
-
#fg2m ⇒ Integer
Returns the 2-point field goals made.
-
#fg3_pct ⇒ Float
Returns the 3-point field goal percentage.
-
#fg3a ⇒ Integer
Returns the 3-point field goal attempts.
-
#fg3m ⇒ Integer
Returns the 3-point field goals made.
-
#fg_a ⇒ Integer
Returns the field goal attempts.
-
#fg_m ⇒ Integer
Returns the field goals made.
-
#fg_pct ⇒ Float
Returns the field goal percentage.
-
#frequency ⇒ Float
Returns the frequency of this pass combination.
-
#pass ⇒ Integer
Returns the number of passes.
-
#pass_to ⇒ String
Returns the name of the player receiving the pass.
-
#pass_to_player_id ⇒ Integer
Returns the ID of the player receiving the pass.
-
#player_id ⇒ Integer
Returns the passer’s player ID.
-
#player_name ⇒ String
Returns the passer’s name.
-
#team_abbreviation ⇒ String
Returns the team abbreviation.
-
#team_id ⇒ Integer
Returns the team ID.
Instance Method Summary collapse
-
#pass_to_player ⇒ Player?
Returns the receiver player object.
-
#player ⇒ Player?
Returns the passer player object.
-
#team ⇒ Team?
Returns the team object.
Instance Attribute Details
#ast ⇒ Integer
Returns the number of assists
81 |
# File 'lib/nba/assist_tracker_entry.rb', line 81 attribute :ast, Shale::Type::Integer |
#fg2_pct ⇒ Float
Returns the 2-point field goal percentage
129 |
# File 'lib/nba/assist_tracker_entry.rb', line 129 attribute :fg2_pct, Shale::Type::Float |
#fg2a ⇒ Integer
Returns the 2-point field goal attempts
121 |
# File 'lib/nba/assist_tracker_entry.rb', line 121 attribute :fg2a, Shale::Type::Integer |
#fg2m ⇒ Integer
Returns the 2-point field goals made
113 |
# File 'lib/nba/assist_tracker_entry.rb', line 113 attribute :fg2m, Shale::Type::Integer |
#fg3_pct ⇒ Float
Returns the 3-point field goal percentage
153 |
# File 'lib/nba/assist_tracker_entry.rb', line 153 attribute :fg3_pct, Shale::Type::Float |
#fg3a ⇒ Integer
Returns the 3-point field goal attempts
145 |
# File 'lib/nba/assist_tracker_entry.rb', line 145 attribute :fg3a, Shale::Type::Integer |
#fg3m ⇒ Integer
Returns the 3-point field goals made
137 |
# File 'lib/nba/assist_tracker_entry.rb', line 137 attribute :fg3m, Shale::Type::Integer |
#fg_a ⇒ Integer
Returns the field goal attempts
97 |
# File 'lib/nba/assist_tracker_entry.rb', line 97 attribute :fg_a, Shale::Type::Integer |
#fg_m ⇒ Integer
Returns the field goals made
89 |
# File 'lib/nba/assist_tracker_entry.rb', line 89 attribute :fg_m, Shale::Type::Integer |
#fg_pct ⇒ Float
Returns the field goal percentage
105 |
# File 'lib/nba/assist_tracker_entry.rb', line 105 attribute :fg_pct, Shale::Type::Float |
#frequency ⇒ Float
Returns the frequency of this pass combination
65 |
# File 'lib/nba/assist_tracker_entry.rb', line 65 attribute :frequency, Shale::Type::Float |
#pass ⇒ Integer
Returns the number of passes
73 |
# File 'lib/nba/assist_tracker_entry.rb', line 73 attribute :pass, Shale::Type::Integer |
#pass_to ⇒ String
Returns the name of the player receiving the pass
49 |
# File 'lib/nba/assist_tracker_entry.rb', line 49 attribute :pass_to, Shale::Type::String |
#pass_to_player_id ⇒ Integer
Returns the ID of the player receiving the pass
57 |
# File 'lib/nba/assist_tracker_entry.rb', line 57 attribute :pass_to_player_id, Shale::Type::Integer |
#player_id ⇒ Integer
Returns the passer’s player ID
17 |
# File 'lib/nba/assist_tracker_entry.rb', line 17 attribute :player_id, Shale::Type::Integer |
#player_name ⇒ String
Returns the passer’s name
25 |
# File 'lib/nba/assist_tracker_entry.rb', line 25 attribute :player_name, Shale::Type::String |
#team_abbreviation ⇒ String
Returns the team abbreviation
41 |
# File 'lib/nba/assist_tracker_entry.rb', line 41 attribute :team_abbreviation, Shale::Type::String |
#team_id ⇒ Integer
Returns the team ID
33 |
# File 'lib/nba/assist_tracker_entry.rb', line 33 attribute :team_id, Shale::Type::Integer |
Instance Method Details
#pass_to_player ⇒ Player?
Returns the receiver player object
171 172 173 |
# File 'lib/nba/assist_tracker_entry.rb', line 171 def pass_to_player Players.find(pass_to_player_id) end |