Class: PUBG::Telemetry::Vehicle

Inherits:
Object
  • Object
show all
Defined in:
lib/pubg/telemetry/shared/vehicle.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject (readonly)

Returns the value of attribute data.



4
5
6
# File 'lib/pubg/telemetry/shared/vehicle.rb', line 4

def data
  @data
end

#fuelpercentObject (readonly)

Returns the value of attribute fuelpercent.



4
5
6
# File 'lib/pubg/telemetry/shared/vehicle.rb', line 4

def fuelpercent
  @fuelpercent
end

#healthpercentObject (readonly)

Returns the value of attribute healthpercent.



4
5
6
# File 'lib/pubg/telemetry/shared/vehicle.rb', line 4

def healthpercent
  @healthpercent
end

#vehicleidObject (readonly)

Returns the value of attribute vehicleid.



4
5
6
# File 'lib/pubg/telemetry/shared/vehicle.rb', line 4

def vehicleid
  @vehicleid
end

#vehicletypeObject (readonly)

Returns the value of attribute vehicletype.



4
5
6
# File 'lib/pubg/telemetry/shared/vehicle.rb', line 4

def vehicletype
  @vehicletype
end