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.31 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.30 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.29 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.28 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.27 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.26 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.25 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.24 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.23 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.22 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.21 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.20 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.19 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.18 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.17 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.16 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.15 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.14 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.13 lib/sportradar/api/baseball/events/warming_up.rb
sportradar-api-0.11.12 lib/sportradar/api/baseball/events/warming_up.rb