Class: LiveF1::Packet::Unknown
- Inherits:
-
LiveF1::Packet
- Object
- LiveF1::Packet
- LiveF1::Packet::Unknown
- Includes:
- Type::Special
- Defined in:
- lib/live_f1/packet/header.rb
Overview
The Unknown packet is a special placeholder packet for situations where a zero-length packet is delivered but seems to have no effect on the stream
Instance Attribute Summary
Attributes inherited from LiveF1::Packet
Instance Method Summary collapse
Methods included from Type::Special
Methods inherited from LiveF1::Packet
from_source, #initialize, #inspect, #leader, #spare_bits, #spare_data
Constructor Details
This class inherits a constructor from LiveF1::Packet
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/live_f1/packet/header.rb', line 11 def to_s "Unknown packet type #{header.packet_type}" + (header.car > 0 ? " for car #{header.car}" : "") end |