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.11 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.10 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.9 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.8 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.7 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.6 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.5 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.4 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.3 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.1 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.0 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.55 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.54 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.53 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.52 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.51 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.50 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.49 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.48 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.10.47 lib/sportradar/api/baseball/events/warming_up.rb