Sha256: b92aabb85107fc0af209d711e3a11eb3ee0cb6ef8433787b0a6d66434c8e5925
Contents?: true
Size: 1.03 KB
Versions: 64
Compression:
Stored size: 1.03 KB
Contents
module Sportradar module Api module Baseball class Event class WarmingUp < Data attr_accessor :response, :id, :first_name, :last_name, :player_id, :team_id def initialize(data, **opts) @response = data # @api = opts[:api] # @half_inning = opts[:half_inning] @event = opts[:event] @id = data["id"] @type = data['type'] @first_name = data['first_name'] if data['first_name'] @last_name = data['last_name'] if data['last_name'] @player_id = data['player_id'] if data['player_id'] @team_id = data['team_id'] if data['team_id'] @preferred_name = data['preferred_name'] if data['preferred_name'] update(data) end def update(data, **opts) # parse pitches end def data_key 'warming_up' end end end end end end
Version data entries
64 entries across 64 versions & 1 rubygems