Class: PUBG::Telemetry::Vehicle
- Inherits:
-
Object
- Object
- PUBG::Telemetry::Vehicle
- Defined in:
- lib/pubg/telemetry/shared/vehicle.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#fuelpercent ⇒ Object
readonly
Returns the value of attribute fuelpercent.
-
#healthpercent ⇒ Object
readonly
Returns the value of attribute healthpercent.
-
#vehicleid ⇒ Object
readonly
Returns the value of attribute vehicleid.
-
#vehicletype ⇒ Object
readonly
Returns the value of attribute vehicletype.
Instance Method Summary collapse
-
#initialize(args) ⇒ Vehicle
constructor
A new instance of Vehicle.
Constructor Details
#initialize(args) ⇒ Vehicle
Returns a new instance of Vehicle.
6 7 8 9 10 11 12 |
# File 'lib/pubg/telemetry/shared/vehicle.rb', line 6 def initialize(args) @data = args @vehicletype = args["VehicleType"] @vehicleid = args["VehicleId"] @healthpercent = args["HealthPercent"] @fuelpercent = args["FeulPercent"] end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
4 5 6 |
# File 'lib/pubg/telemetry/shared/vehicle.rb', line 4 def data @data end |
#fuelpercent ⇒ Object (readonly)
Returns the value of attribute fuelpercent.
4 5 6 |
# File 'lib/pubg/telemetry/shared/vehicle.rb', line 4 def fuelpercent @fuelpercent end |
#healthpercent ⇒ Object (readonly)
Returns the value of attribute healthpercent.
4 5 6 |
# File 'lib/pubg/telemetry/shared/vehicle.rb', line 4 def healthpercent @healthpercent end |
#vehicleid ⇒ Object (readonly)
Returns the value of attribute vehicleid.
4 5 6 |
# File 'lib/pubg/telemetry/shared/vehicle.rb', line 4 def vehicleid @vehicleid end |
#vehicletype ⇒ Object (readonly)
Returns the value of attribute vehicletype.
4 5 6 |
# File 'lib/pubg/telemetry/shared/vehicle.rb', line 4 def vehicletype @vehicletype end |