Module: NBA::DraftCombinePlayerAnthro

Defined in:
lib/nba/draft_combine_player_anthro.rb

Overview

Provides methods to retrieve draft combine anthropometric data

Constant Summary collapse

RESULTS =

Result set name

Returns:

  • (String)

    the result set name

"Results".freeze

Class Method Summary collapse

Class Method Details

.all(season:, league: League::NBA, client: CLIENT) ⇒ Collection

Retrieves draft combine anthropometric measurements for a season

Examples:

measurements = NBA::DraftCombinePlayerAnthro.all(season: 2019)
measurements.each { |m| puts "#{m.player_name}: #{m.height_w_shoes_ft_in}" }

Parameters:

  • season (Integer)

    the draft combine season year

  • league (String, League) (defaults to: League::NBA)

    the league ID or League object (default NBA)

  • client (Client) (defaults to: CLIENT)

    the API client to use

Returns:

  • (Collection)

    a collection of draft combine anthropometric measurements



23
24
25
26
27
28
# File 'lib/nba/draft_combine_player_anthro.rb', line 23

def self.all(season:, league: League::NBA, client: CLIENT)
  league_id = Utils.extract_league_id(league)
  path = build_path(season, league_id)
  response = client.get(path)
  parse_response(response)
end