Module: MLBStatsAPI::Divisions

Included in:
Client
Defined in:
lib/mlb_stats_api/divisions.rb

Overview

Constant Summary collapse

DIVISIONS =

There are actually far more divisions from other leagues in the API. I don’t think I’ll add them until necessary.

{
  al_east: 201,
  al_central: 202,
  al_west: 200,
  nl_east: 204,
  nl_central: 205,
  nl_west: 203
}.freeze

Instance Method Summary collapse

Instance Method Details

#divisions(options = {}) ⇒ Object

View league division directorial information.



19
20
21
# File 'lib/mlb_stats_api/divisions.rb', line 19

def divisions(options = {})
  get '/divisions', options
end