Sha256: e5accc9032f28d4319beb09fe2ef66e175e535ba1fd49026e9a0ea9cb3534b69
Contents?: true
Size: 217 Bytes
Versions: 1
Compression:
Stored size: 217 Bytes
Contents
# frozen_string_literal: true module MLBStatsAPI class Base attr_reader :data def initialize(data) @data = data end def [](key) = @data[key] def dig(*path) = @data.dig(*path) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mlb_stats_api-0.4.0 | lib/mlb_stats_api/base.rb |