Sha256: 438ac56e62a1c67bc057ae4782f34ad269724443fa7e817a39c6d8d09cafc902

Contents?: true

Size: 186 Bytes

Versions: 4

Compression:

Stored size: 186 Bytes

Contents

# frozen_string_literal: true

module MLBStatsAPI
  module Sports
    def sports
      get('/sports')
    end

    def sport(sport_id)
      get("/sports/#{sport_id}")
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mlb_stats_api-0.2.1 lib/mlb_stats_api/sports.rb
mlb_stats_api-0.2.0 lib/mlb_stats_api/sports.rb
mlb_stats_api-0.1.1 lib/mlb_stats_api/sports.rb
mlb_stats_api-0.1.0 lib/mlb_stats_api/sports.rb