Module: NBA::DraftCombineSpotShooting::CollegeRange Private
- Defined in:
- lib/nba/draft_combine_spot_shooting.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Extracts college range shot attributes
Class Method Summary collapse
-
.breaks(data) ⇒ Hash
private
Extracts break shot attributes from data.
-
.corners(data) ⇒ Hash
private
Extracts corner shot attributes from data.
-
.top(data) ⇒ Hash
private
Extracts top key shot attributes from data.
Class Method Details
.breaks(data) ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Extracts break shot attributes from data
183 184 185 186 187 188 189 190 |
# File 'lib/nba/draft_combine_spot_shooting.rb', line 183 def self.breaks(data) {college_break_left_made: data["COLLEGE_BREAK_LEFT_MADE"], college_break_left_attempt: data["COLLEGE_BREAK_LEFT_ATTEMPT"], college_break_left_pct: data["COLLEGE_BREAK_LEFT_PCT"], college_break_right_made: data["COLLEGE_BREAK_RIGHT_MADE"], college_break_right_attempt: data["COLLEGE_BREAK_RIGHT_ATTEMPT"], college_break_right_pct: data["COLLEGE_BREAK_RIGHT_PCT"]} end |
.corners(data) ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Extracts corner shot attributes from data
170 171 172 173 174 175 176 177 |
# File 'lib/nba/draft_combine_spot_shooting.rb', line 170 def self.corners(data) {college_corner_left_made: data["COLLEGE_CORNER_LEFT_MADE"], college_corner_left_attempt: data["COLLEGE_CORNER_LEFT_ATTEMPT"], college_corner_left_pct: data["COLLEGE_CORNER_LEFT_PCT"], college_corner_right_made: data["COLLEGE_CORNER_RIGHT_MADE"], college_corner_right_attempt: data["COLLEGE_CORNER_RIGHT_ATTEMPT"], college_corner_right_pct: data["COLLEGE_CORNER_RIGHT_PCT"]} end |
.top(data) ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Extracts top key shot attributes from data
196 197 198 199 200 |
# File 'lib/nba/draft_combine_spot_shooting.rb', line 196 def self.top(data) {college_top_key_made: data["COLLEGE_TOP_KEY_MADE"], college_top_key_attempt: data["COLLEGE_TOP_KEY_ATTEMPT"], college_top_key_pct: data["COLLEGE_TOP_KEY_PCT"]} end |