Module: NBA::DraftCombineSpotShooting::FifteenFoot 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 fifteen-foot 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
143 144 145 146 147 148 149 150 |
# File 'lib/nba/draft_combine_spot_shooting.rb', line 143 def self.breaks(data) {fifteen_break_left_made: data["FIFTEEN_BREAK_LEFT_MADE"], fifteen_break_left_attempt: data["FIFTEEN_BREAK_LEFT_ATTEMPT"], fifteen_break_left_pct: data["FIFTEEN_BREAK_LEFT_PCT"], fifteen_break_right_made: data["FIFTEEN_BREAK_RIGHT_MADE"], fifteen_break_right_attempt: data["FIFTEEN_BREAK_RIGHT_ATTEMPT"], fifteen_break_right_pct: data["FIFTEEN_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
130 131 132 133 134 135 136 137 |
# File 'lib/nba/draft_combine_spot_shooting.rb', line 130 def self.corners(data) {fifteen_corner_left_made: data["FIFTEEN_CORNER_LEFT_MADE"], fifteen_corner_left_attempt: data["FIFTEEN_CORNER_LEFT_ATTEMPT"], fifteen_corner_left_pct: data["FIFTEEN_CORNER_LEFT_PCT"], fifteen_corner_right_made: data["FIFTEEN_CORNER_RIGHT_MADE"], fifteen_corner_right_attempt: data["FIFTEEN_CORNER_RIGHT_ATTEMPT"], fifteen_corner_right_pct: data["FIFTEEN_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
156 157 158 159 160 |
# File 'lib/nba/draft_combine_spot_shooting.rb', line 156 def self.top(data) {fifteen_top_key_made: data["FIFTEEN_TOP_KEY_MADE"], fifteen_top_key_attempt: data["FIFTEEN_TOP_KEY_ATTEMPT"], fifteen_top_key_pct: data["FIFTEEN_TOP_KEY_PCT"]} end |