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

Version Path
sportradar-api-0.10.33 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.32 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.31 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.30 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.29 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.28 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.27 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.26 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.25 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.24 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.23 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.22 lib/sportradar/api/baseball/events/warming_up.rb