Sha256: b64d4dda8740776e6d72f560380ec0a5b6e20f860b935f277dbbf25b61222213
Contents?: true
Size: 559 Bytes
Versions: 4
Compression:
Stored size: 559 Bytes
Contents
# frozen_string_literal: true module MLBStatsAPI # Operations pertaining to seasons # @see https://statsapi.mlb.com/docs/#tag/season module Seasons # View current season info. # @see https://statsapi.mlb.com/docs/#operation/seasons def seasons(options = {}) get '/seasons', { sportId: 1 }.merge(options) end # View information on an individual season. # @see https://statsapi.mlb.com/docs/#operation/seasons def season(year, options = {}) get "/seasons/#{year}", { sportId: 1 }.merge(options) end end end
Version data entries
4 entries across 4 versions & 1 rubygems