Sha256: da4cbdbe6c5ccf465903dd48b00f3cf1c2052e1864ba13ae2c49ec0143601792

Contents?: true

Size: 575 Bytes

Versions: 4

Compression:

Stored size: 575 Bytes

Contents

# frozen_string_literal: true

module MLBStatsAPI
  # Only the Pacific Coast League uses conferences
  # @see https://statsapi.mlb.com/docs/#tag/conference
  module Conferences
    # View all PCL conferences.
    # @see https://statsapi.mlb.com/docs/#operation/conferences
    def conferences(options = {})
      get '/conferences', options
    end

    # View PCL conferences by conferenceId.
    # @see https://statsapi.mlb.com/docs/#operation/conferences
    def conference(conference_id, options = {})
      get "/conferences/#{conference_id}", options
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mlb_stats_api-0.2.5 lib/mlb_stats_api/conferences.rb
mlb_stats_api-0.2.4 lib/mlb_stats_api/conferences.rb
mlb_stats_api-0.2.3 lib/mlb_stats_api/conferences.rb
mlb_stats_api-0.2.2 lib/mlb_stats_api/conferences.rb