Sha256: 01d451dec234444f1f96743bea66fa85f8f6f0fd7cc9f4a8a8b71690a20a3a48
Contents?: true
Size: 509 Bytes
Versions: 4
Compression:
Stored size: 509 Bytes
Contents
# frozen_string_literal: true # Although this group has two endpoints, they both have the same function. # # /v1/seasons/{seasonId} is the same as /v1/seasons?season={seasonId} module MLBStatsAPI module Seasons # Fetch one or more seasons' start and end dates # # @param year [String] comma-separated list of years # # @return [Array<Hash>] a list of matching seasons def seasons(year: nil) get('/seasons', sportId: 1, season: year) end alias season seasons end end
Version data entries
4 entries across 4 versions & 1 rubygems