Sha256: b07632892ba939abaded29254d06e56317553990ecb18d7c8294f7ff213b876f

Contents?: true

Size: 835 Bytes

Versions: 4

Compression:

Stored size: 835 Bytes

Contents

# frozen_string_literal: true

module MLBStatsAPI
  # @see https://statsapi.mlb.com/docs/#tag/homerunderby
  module HomeRunDerby
    # View a home run derby object based on gamePk.
    # @see https://statsapi.mlb.com/docs/#operation/homeRunDerbyBracket
    def home_run_derby(game_pk, options = {})
      get "/homeRunDerby/#{game_pk}", options
    end

    # View a home run derby object based on bracket.
    # @see https://statsapi.mlb.com/docs/#operation/homeRunDerbyBracket
    def home_run_derby_bracket(game_pk, options = {})
      get "/homeRunDerby/#{game_pk}/bracket", options
    end

    # View a home run derby object based on pool.
    # @see https://statsapi.mlb.com/docs/#operation/homeRunDerbyPool
    def home_run_derby_pool(game_pk, options = {})
      get "/homeRunDerby/#{game_pk}/pool", 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/home_run_derby.rb
mlb_stats_api-0.2.4 lib/mlb_stats_api/home_run_derby.rb
mlb_stats_api-0.2.3 lib/mlb_stats_api/home_run_derby.rb
mlb_stats_api-0.2.2 lib/mlb_stats_api/home_run_derby.rb