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

Version Path
sportradar-api-0.10.21 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.20 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.19 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.18 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.17 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.16 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.15 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.14 lib/sportradar/api/baseball/events/warming_up.rb