Sha256: cd96599f7b8b3832bfcb58e9b44382f95bd295cac1d089606642170698fe039f

Contents?: true

Size: 977 Bytes

Versions: 9

Compression:

Stored size: 977 Bytes

Contents

module Sportradar
  module Api
    module Baseball
      class Event
        class WarmingUp < Data
          attr_accessor :response, :id, :first_name, :last_name, :player_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']
            @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

9 entries across 9 versions & 1 rubygems

Version Path
sportradar-api-0.10.42 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.41 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.40 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.39 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.38 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.37 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.36 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.35 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.34 lib/sportradar/api/baseball/events/warming_up.rb