Sha256: 333b2bad82282c2f2453e659d14c7a47df9693d5ed45e092032a024582a99048
Contents?: true
Size: 543 Bytes
Versions: 1
Compression:
Stored size: 543 Bytes
Contents
# frozen_string_literal: true module MLBStatsAPI # Operations pertaining to standings module Standings # View standings for a league. def standings(**options) options[:hydrate] = 'team' unless options.key?(:hydrate) if options[:leagues] && !options[:leagueId] league_ids = Leagues::LEAGUES.values_at(*options.delete(:leagues)) options[:leagueId] = league_ids end options[:leagueId] = [103, 104] unless Array(options[:leagueId])&.any? get '/standings', **options end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mlb_stats_api-0.4.0 | lib/mlb_stats_api/standings.rb |