Module: NBA::BoxScoreSimilarityScore
- Defined in:
- lib/nba/box_score_similarity_score.rb
Overview
Provides methods to retrieve G League Alum box score similarity scores
Constant Summary collapse
- RESULT_SET_NAME =
Result set name for similarity scores
"GLeagueAlumBoxScoreSimilarityScores".freeze
- REGULAR_SEASON =
Regular season type constant
"Regular Season".freeze
- PLAYOFFS =
Playoffs season type constant
"Playoffs".freeze
Class Method Summary collapse
-
.find(first_person:, second_person:, first_season: Utils.current_season, second_season: Utils.current_season, first_season_type: REGULAR_SEASON, second_season_type: REGULAR_SEASON, client: CLIENT) ⇒ Collection
Retrieves box score similarity scores for two players.
Class Method Details
.find(first_person:, second_person:, first_season: Utils.current_season, second_season: Utils.current_season, first_season_type: REGULAR_SEASON, second_season_type: REGULAR_SEASON, client: CLIENT) ⇒ Collection
Retrieves box score similarity scores for two players
37 38 39 40 41 42 43 44 45 |
# File 'lib/nba/box_score_similarity_score.rb', line 37 def self.find(first_person:, second_person:, first_season: Utils.current_season, second_season: Utils.current_season, first_season_type: REGULAR_SEASON, second_season_type: REGULAR_SEASON, client: CLIENT) first_id = Utils.extract_id(first_person) second_id = Utils.extract_id(second_person) path = build_path(first_id: first_id, second_id: second_id, first_season: first_season, second_season: second_season, first_season_type: first_season_type, second_season_type: second_season_type) response = client.get(path) parse_response(response, first_id) end |