Class: PUBG::Telemetry::Attacker

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#accountidObject (readonly)

Returns the value of attribute accountid.



6
7
8
# File 'lib/pubg/telemetry/shared/attacker.rb', line 6

def accountid
  @accountid
end

#dataObject (readonly)

Returns the value of attribute data.



6
7
8
# File 'lib/pubg/telemetry/shared/attacker.rb', line 6

def data
  @data
end

#healthObject (readonly)

Returns the value of attribute health.



6
7
8
# File 'lib/pubg/telemetry/shared/attacker.rb', line 6

def health
  @health
end

#locationObject (readonly)

Returns the value of attribute location.



6
7
8
# File 'lib/pubg/telemetry/shared/attacker.rb', line 6

def location
  @location
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/pubg/telemetry/shared/attacker.rb', line 6

def name
  @name
end

#rankingObject (readonly)

Returns the value of attribute ranking.



6
7
8
# File 'lib/pubg/telemetry/shared/attacker.rb', line 6

def ranking
  @ranking
end

#teamidObject (readonly)

Returns the value of attribute teamid.



6
7
8
# File 'lib/pubg/telemetry/shared/attacker.rb', line 6

def teamid
  @teamid
end