Sha256: 914e6213c345181f9980bf1df6751ae6ec2b35bc4e24a7eeda58a4182e0fe666

Contents?: true

Size: 236 Bytes

Versions: 1

Compression:

Stored size: 236 Bytes

Contents

# frozen_string_literal: true

module MLBStatsAPI
  # Operations pertaining to venues
  module Venues
    # View information for a venue based on venue ID.
    def venue(venue_id) = get("/venues/#{venue_id}").dig('venues', 0)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mlb_stats_api-0.4.0 lib/mlb_stats_api/venues.rb