Class: LiveF1::Packet::Car

Inherits:
LiveF1::Packet show all
Defined in:
lib/live_f1/packet/car.rb,
lib/live_f1/packet/car/gap.rb,
lib/live_f1/packet/car/driver.rb,
lib/live_f1/packet/car/number.rb,
lib/live_f1/packet/car/interval.rb,
lib/live_f1/packet/car/lap_time.rb,
lib/live_f1/packet/car/num_pits.rb,
lib/live_f1/packet/car/period_1.rb,
lib/live_f1/packet/car/period_2.rb,
lib/live_f1/packet/car/period_3.rb,
lib/live_f1/packet/car/position.rb,
lib/live_f1/packet/car/sector_1.rb,
lib/live_f1/packet/car/sector_2.rb,
lib/live_f1/packet/car/sector_3.rb,
lib/live_f1/packet/car/lap_count.rb,
lib/live_f1/packet/car/pit_count.rb,
lib/live_f1/packet/car/pit_lap_1.rb,
lib/live_f1/packet/car/pit_lap_2.rb,
lib/live_f1/packet/car/pit_lap_3.rb,
lib/live_f1/packet/car/best_lap_time.rb,
lib/live_f1/packet/car/position_update.rb,
lib/live_f1/packet/car/position_history.rb

Defined Under Namespace

Classes: BestLapTime, Driver, Gap, Interval, LapCount, LapTime, NumPits, Number, Period1, Period2, Period3, PitCount, PitLap1, PitLap2, PitLap3, Position, PositionHistory, PositionUpdate, Sector1, Sector2, Sector3

Instance Attribute Summary

Attributes inherited from LiveF1::Packet

#data, #header, #source

Instance Method Summary collapse

Methods inherited from LiveF1::Packet

from_source, #initialize, #inspect, #spare_bits, #spare_data, #to_s

Constructor Details

This class inherits a constructor from LiveF1::Packet

Instance Method Details

#leaderObject



4
5
6
# File 'lib/live_f1/packet/car.rb', line 4

def leader
  super.gsub(/Car/) { "Car(%02d)" % header.car }
end