module MLBStatsAPI::Drafts

Operations pertaining to MLB Rule 4 Draft (First-Year Player Draft) @see statsapi.mlb.com/docs/#tag/draft

Public Instance Methods

draft(year, options = {}) click to toggle source

View drafted players by year. @see statsapi.mlb.com/docs/#operation/draft

# File lib/mlb_stats_api/drafts.rb, line 9
def draft(year, options = {})
  get "/draft/#{year}", options
end
draft_latest(year, options = {}) click to toggle source

View latest player drafted, endpoint best used when draft is currently open. @see statsapi.mlb.com/docs/#operation/latestDraftPicks

# File lib/mlb_stats_api/drafts.rb, line 22
def draft_latest(year, options = {})
  get "/draft/#{year}/latest", options
end
draft_prospects(year, options = {}) click to toggle source

View draft eligible prospects by year. @see statsapi.mlb.com/docs/#operation/draftProspects

# File lib/mlb_stats_api/drafts.rb, line 15
def draft_prospects(year, options = {})
  get "/draft/#{year}/prospects", options
end