Module: NBA::DraftCombineSpotShooting::NbaRange 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 NBA range shot attributes

Class Method Summary collapse

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

Parameters:

  • data (Hash)

    the row data

Returns:

  • (Hash)

    break shot attributes



223
224
225
226
227
228
229
230
# File 'lib/nba/draft_combine_spot_shooting.rb', line 223

def self.breaks(data)
  {nba_break_left_made: data["NBA_BREAK_LEFT_MADE"],
   nba_break_left_attempt: data["NBA_BREAK_LEFT_ATTEMPT"],
   nba_break_left_pct: data["NBA_BREAK_LEFT_PCT"],
   nba_break_right_made: data["NBA_BREAK_RIGHT_MADE"],
   nba_break_right_attempt: data["NBA_BREAK_RIGHT_ATTEMPT"],
   nba_break_right_pct: data["NBA_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

Parameters:

  • data (Hash)

    the row data

Returns:

  • (Hash)

    corner shot attributes



210
211
212
213
214
215
216
217
# File 'lib/nba/draft_combine_spot_shooting.rb', line 210

def self.corners(data)
  {nba_corner_left_made: data["NBA_CORNER_LEFT_MADE"],
   nba_corner_left_attempt: data["NBA_CORNER_LEFT_ATTEMPT"],
   nba_corner_left_pct: data["NBA_CORNER_LEFT_PCT"],
   nba_corner_right_made: data["NBA_CORNER_RIGHT_MADE"],
   nba_corner_right_attempt: data["NBA_CORNER_RIGHT_ATTEMPT"],
   nba_corner_right_pct: data["NBA_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

Parameters:

  • data (Hash)

    the row data

Returns:

  • (Hash)

    top key shot attributes



236
237
238
239
240
# File 'lib/nba/draft_combine_spot_shooting.rb', line 236

def self.top(data)
  {nba_top_key_made: data["NBA_TOP_KEY_MADE"],
   nba_top_key_attempt: data["NBA_TOP_KEY_ATTEMPT"],
   nba_top_key_pct: data["NBA_TOP_KEY_PCT"]}
end