Class: LiveF1::Packet::Sys::TrackStatus

Inherits:
LiveF1::Packet::Sys show all
Includes:
Decryptable, Type::Short
Defined in:
lib/live_f1/packet/sys/track_status.rb

Instance Attribute Summary

Attributes included from Decryptable

#raw_data

Attributes inherited from LiveF1::Packet

#data, #header, #source

Instance Method Summary collapse

Methods included from Decryptable

#bytes, #data=

Methods included from Type::Short

#length, #spare_bits

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

#statusObject



8
9
10
# File 'lib/live_f1/packet/sys/track_status.rb', line 8

def status
  data.to_i
end

#to_sObject



12
13
14
# File 'lib/live_f1/packet/sys/track_status.rb', line 12

def to_s
  Event::TrackStatus.name_for(status)
end