Sha256: 7a954d4eadcff2e69b390f491b9af85482e5f8998b5f1490413b3f0719b2a438

Contents?: true

Size: 474 Bytes

Versions: 1

Compression:

Stored size: 474 Bytes

Contents

# frozen_string_literal: true

module MLBStatsAPI
  module Divisions
    # There are actually far more divisions from other leagues in the API.
    # I don't think I'll add them until necessary.
    DIVISIONS = {
      al_east: 201,
      al_central: 202,
      al_west: 200,
      nl_east: 204,
      nl_central: 205,
      nl_west: 203
    }.freeze

    # View league division directorial information.
    def divisions(**options) = get('/divisions', **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/divisions.rb