Class: PUBG::Telemetry::LogPlayerAttack
- Inherits:
-
Object
- Object
- PUBG::Telemetry::LogPlayerAttack
- Defined in:
- lib/pubg/telemetry/log_player_attack.rb
Instance Attribute Summary collapse
-
#_D ⇒ Object
readonly
Returns the value of attribute _D.
-
#_T ⇒ Object
readonly
Returns the value of attribute _T.
-
#_V ⇒ Object
readonly
Returns the value of attribute _V.
-
#attacker ⇒ Object
readonly
Returns the value of attribute attacker.
-
#attackid ⇒ Object
readonly
Returns the value of attribute attackid.
-
#attacktype ⇒ Object
readonly
Returns the value of attribute attacktype.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#vehicle ⇒ Object
readonly
Returns the value of attribute vehicle.
-
#weapon ⇒ Object
readonly
Returns the value of attribute weapon.
Instance Method Summary collapse
-
#initialize(args) ⇒ LogPlayerAttack
constructor
A new instance of LogPlayerAttack.
Constructor Details
#initialize(args) ⇒ LogPlayerAttack
Returns a new instance of LogPlayerAttack.
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/pubg/telemetry/log_player_attack.rb', line 10 def initialize(args) @data = args @attackid = args["AttackId"] @attacker = Attacker.new(args["Attacker"]) @attacktype = args["AttackType"] @weapon = Weapon.new(args["Weapon"]) @vehicle = Vehicle.new(args["Vehicle"]) @_V = args["_V"] @_D = args["_D"] @_T = args["_T"] end |
Instance Attribute Details
#_D ⇒ Object (readonly)
Returns the value of attribute _D.
8 9 10 |
# File 'lib/pubg/telemetry/log_player_attack.rb', line 8 def _D @_D end |
#_T ⇒ Object (readonly)
Returns the value of attribute _T.
8 9 10 |
# File 'lib/pubg/telemetry/log_player_attack.rb', line 8 def _T @_T end |
#_V ⇒ Object (readonly)
Returns the value of attribute _V.
8 9 10 |
# File 'lib/pubg/telemetry/log_player_attack.rb', line 8 def _V @_V end |
#attacker ⇒ Object (readonly)
Returns the value of attribute attacker.
8 9 10 |
# File 'lib/pubg/telemetry/log_player_attack.rb', line 8 def attacker @attacker end |
#attackid ⇒ Object (readonly)
Returns the value of attribute attackid.
8 9 10 |
# File 'lib/pubg/telemetry/log_player_attack.rb', line 8 def attackid @attackid end |
#attacktype ⇒ Object (readonly)
Returns the value of attribute attacktype.
8 9 10 |
# File 'lib/pubg/telemetry/log_player_attack.rb', line 8 def attacktype @attacktype end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
8 9 10 |
# File 'lib/pubg/telemetry/log_player_attack.rb', line 8 def data @data end |
#vehicle ⇒ Object (readonly)
Returns the value of attribute vehicle.
8 9 10 |
# File 'lib/pubg/telemetry/log_player_attack.rb', line 8 def vehicle @vehicle end |
#weapon ⇒ Object (readonly)
Returns the value of attribute weapon.
8 9 10 |
# File 'lib/pubg/telemetry/log_player_attack.rb', line 8 def weapon @weapon end |