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

Version Path
sportradar-api-0.11.51 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.50 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.49 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.48 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.47 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.46 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.45 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.44 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.43 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.42 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.41 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.40 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.39 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.38 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.37 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.36 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.35 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.34 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.33 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.32 lib/sportradar/api/baseball/events/warming_up.rb