Sha256: 9a37304ad4b1174fb5290a27707e4cfe86f715fdaca57b02a806c11ecd1eb7eb
Contents?: true
Size: 832 Bytes
Versions: 4
Compression:
Stored size: 832 Bytes
Contents
# frozen_string_literal: true module MLBStatsAPI # Operations pertaining to MLB Rule 4 Draft (First-Year Player Draft) # @see https://statsapi.mlb.com/docs/#tag/draft module Drafts # View drafted players by year. # @see https://statsapi.mlb.com/docs/#operation/draft def draft(year, options = {}) get "/draft/#{year}", options end # View draft eligible prospects by year. # @see https://statsapi.mlb.com/docs/#operation/draftProspects def draft_prospects(year, options = {}) get "/draft/#{year}/prospects", options end # View latest player drafted, endpoint best used when draft is currently # open. # @see https://statsapi.mlb.com/docs/#operation/latestDraftPicks def draft_latest(year, options = {}) get "/draft/#{year}/latest", options end end end
Version data entries
4 entries across 4 versions & 1 rubygems