Class: PUBG::Telemetry::Attacker
- Inherits:
-
Object
- Object
- PUBG::Telemetry::Attacker
- Defined in:
- lib/pubg/telemetry/shared/attacker.rb
Instance Attribute Summary collapse
-
#accountid ⇒ Object
readonly
Returns the value of attribute accountid.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#health ⇒ Object
readonly
Returns the value of attribute health.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#ranking ⇒ Object
readonly
Returns the value of attribute ranking.
-
#teamid ⇒ Object
readonly
Returns the value of attribute teamid.
Instance Method Summary collapse
-
#initialize(args) ⇒ Attacker
constructor
A new instance of Attacker.
Constructor Details
#initialize(args) ⇒ Attacker
8 9 10 11 12 13 14 15 16 |
# File 'lib/pubg/telemetry/shared/attacker.rb', line 8 def initialize(args) @data = args @name = args["Name"] @teamid = args["TeamId"] @health = args["Health"] @location = Location.new(args["Location"]) @ranking = args["Ranking"] @accountid = args["AccountId"] end |
Instance Attribute Details
#accountid ⇒ Object (readonly)
Returns the value of attribute accountid.
6 7 8 |
# File 'lib/pubg/telemetry/shared/attacker.rb', line 6 def accountid @accountid end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
6 7 8 |
# File 'lib/pubg/telemetry/shared/attacker.rb', line 6 def data @data end |
#health ⇒ Object (readonly)
Returns the value of attribute health.
6 7 8 |
# File 'lib/pubg/telemetry/shared/attacker.rb', line 6 def health @health end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
6 7 8 |
# File 'lib/pubg/telemetry/shared/attacker.rb', line 6 def location @location end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/pubg/telemetry/shared/attacker.rb', line 6 def name @name end |
#ranking ⇒ Object (readonly)
Returns the value of attribute ranking.
6 7 8 |
# File 'lib/pubg/telemetry/shared/attacker.rb', line 6 def ranking @ranking end |
#teamid ⇒ Object (readonly)
Returns the value of attribute teamid.
6 7 8 |
# File 'lib/pubg/telemetry/shared/attacker.rb', line 6 def teamid @teamid end |