Sha256: 3135ed2825e82f8ea23ece24858429c7a4dc8097baf14ba63eab70026d200633
Contents?: true
Size: 670 Bytes
Versions: 12
Compression:
Stored size: 670 Bytes
Contents
module Sportradar module Api module Baseball class Event class WarmingUp < Data attr_accessor :response, :id, :hitter_id, :outcome, :description def initialize(data, **opts) @response = data # @api = opts[:api] # @half_inning = opts[:half_inning] @event = opts[:event] @id = data["id"] @type = data['type'] update(data) end def update(data, **opts) # parse pitches end def data_key 'warming_up' end end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems