Sha256: a5956e879aa60ad5d64d6e82026251cb92b2499a15067a2e0de2dc290ab9457d
Contents?: true
Size: 656 Bytes
Versions: 8
Compression:
Stored size: 656 Bytes
Contents
module Sportradar module Api module Baseball class Event class WarmingUp < Data attr_accessor :response, :id, :hitter_id, :outcome 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
8 entries across 8 versions & 1 rubygems