Sha256: 21cf3797fe62cae263b67832a44cb5481758b25353194c118fef9e3888804e9f
Contents?: true
Size: 364 Bytes
Versions: 1
Compression:
Stored size: 364 Bytes
Contents
# frozen_string_literal: true module MLBStatsAPI # Operations pertaining to seasons module Seasons # View current season info. def seasons(**options) = get('/seasons', **{ sportId: 1 }.merge(options)) # View information on an individual season. def season(year, **options) = get("/seasons/#{year}", **{ sportId: 1 }.merge(options)) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mlb_stats_api-0.4.0 | lib/mlb_stats_api/seasons.rb |