Class: PUBG::Match::Participants::Attributes

Inherits:
Object
  • Object
show all
Defined in:
lib/pubg/match/participants/attributes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Attributes

Returns a new instance of Attributes.



11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/pubg/match/participants/attributes.rb', line 11

def initialize(args)
  @DBNOs = args["stats"]["DBNOs"]
  @assists = args["stats"]["assists"]
  @boosts = args["stats"]["boosts"]
  @damageDealt = args["stats"]["damageDealt"]
  @deathType = args["stats"]["deathType"]
  @headshotKills = args["stats"]["headshotKills"]
  @heals = args["stats"]["heals"]
  @killPlace = args["stats"]["killPlace"]
  @killPoints = args["stats"]["killPoints"]
  @killPointsDelta = args["stats"]["killPointsDelta"]
  @killStreaks = args["stats"]["killStreaks"]
  @kills = args["stats"]["kills"]
  @lastKillPoints = args["stats"]["lastKillPoints"]
  @lastWinPoints = args["stats"]["lastWinPoints"]
  @longestKill = args["stats"]["longestKill"]
  @mostDamage = args["stats"]["mostDamage"]
  @name = args["stats"]["name"]
  @playerId = args["stats"]["playerId"]
  @revives = args["stats"]["revives"]
  @rideDistance = args["stats"]["rideDistance"]
  @roadKills = args["stats"]["roadKills"]
  @teamKills = args["stats"]["teamKills"]
  @timeSurvived = args["stats"]["timeSurvived"]
  @vehicleDestroys = args["stats"]["vehicleDestroys"]
  @walkDistance = args["stats"]["walkDistance"]
  @weaponsAcquired = args["stats"]["weaponsAcquired"]
  @winPlace = args["stats"]["winPlace"]
  @winPoints = args["stats"]["winPoints"]
  @winPointsDelta = args["stats"]["winPointsDelta"]
end

Instance Attribute Details

#assistsObject (readonly)

Returns the value of attribute assists.



5
6
7
# File 'lib/pubg/match/participants/attributes.rb', line 5

def assists
  @assists
end

#boostsObject (readonly)

Returns the value of attribute boosts.



5
6
7
# File 'lib/pubg/match/participants/attributes.rb', line 5

def boosts
  @boosts
end

#damageDealtObject (readonly)

Returns the value of attribute damageDealt.



5
6
7
# File 'lib/pubg/match/participants/attributes.rb', line 5

def damageDealt
  @damageDealt
end

#DBNOsObject (readonly)

Returns the value of attribute DBNOs.



5
6
7
# File 'lib/pubg/match/participants/attributes.rb', line 5

def DBNOs
  @DBNOs
end

#deathTypeObject (readonly)

Returns the value of attribute deathType.



5
6
7
# File 'lib/pubg/match/participants/attributes.rb', line 5

def deathType
  @deathType
end

#headshotKillsObject (readonly)

Returns the value of attribute headshotKills.



5
6
7
# File 'lib/pubg/match/participants/attributes.rb', line 5

def headshotKills
  @headshotKills
end

#healsObject (readonly)

Returns the value of attribute heals.



5
6
7
# File 'lib/pubg/match/participants/attributes.rb', line 5

def heals
  @heals
end

#killPlaceObject (readonly)

Returns the value of attribute killPlace.



5
6
7
# File 'lib/pubg/match/participants/attributes.rb', line 5

def killPlace
  @killPlace
end

#killPointsObject (readonly)

Returns the value of attribute killPoints.



5
6
7
# File 'lib/pubg/match/participants/attributes.rb', line 5

def killPoints
  @killPoints
end

#killPointsDeltaObject (readonly)

Returns the value of attribute killPointsDelta.



5
6
7
# File 'lib/pubg/match/participants/attributes.rb', line 5

def killPointsDelta
  @killPointsDelta
end

#killsObject (readonly)

Returns the value of attribute kills.



5
6
7
# File 'lib/pubg/match/participants/attributes.rb', line 5

def kills
  @kills
end

#killStreaksObject (readonly)

Returns the value of attribute killStreaks.



5
6
7
# File 'lib/pubg/match/participants/attributes.rb', line 5

def killStreaks
  @killStreaks
end

#lastKillPointsObject (readonly)

Returns the value of attribute lastKillPoints.



5
6
7
# File 'lib/pubg/match/participants/attributes.rb', line 5

def lastKillPoints
  @lastKillPoints
end

#lastWinPointsObject (readonly)

Returns the value of attribute lastWinPoints.



5
6
7
# File 'lib/pubg/match/participants/attributes.rb', line 5

def lastWinPoints
  @lastWinPoints
end

#longestKillObject (readonly)

Returns the value of attribute longestKill.



5
6
7
# File 'lib/pubg/match/participants/attributes.rb', line 5

def longestKill
  @longestKill
end

#mostDamageObject (readonly)

Returns the value of attribute mostDamage.



5
6
7
# File 'lib/pubg/match/participants/attributes.rb', line 5

def mostDamage
  @mostDamage
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/pubg/match/participants/attributes.rb', line 5

def name
  @name
end

#playerIdObject (readonly)

Returns the value of attribute playerId.



5
6
7
# File 'lib/pubg/match/participants/attributes.rb', line 5

def playerId
  @playerId
end

#revivesObject (readonly)

Returns the value of attribute revives.



5
6
7
# File 'lib/pubg/match/participants/attributes.rb', line 5

def revives
  @revives
end

#rideDistanceObject (readonly)

Returns the value of attribute rideDistance.



5
6
7
# File 'lib/pubg/match/participants/attributes.rb', line 5

def rideDistance
  @rideDistance
end

#roadKillsObject (readonly)

Returns the value of attribute roadKills.



5
6
7
# File 'lib/pubg/match/participants/attributes.rb', line 5

def roadKills
  @roadKills
end

#teamKillsObject (readonly)

Returns the value of attribute teamKills.



5
6
7
# File 'lib/pubg/match/participants/attributes.rb', line 5

def teamKills
  @teamKills
end

#timeSurvivedObject (readonly)

Returns the value of attribute timeSurvived.



5
6
7
# File 'lib/pubg/match/participants/attributes.rb', line 5

def timeSurvived
  @timeSurvived
end

#vehicleDestroysObject (readonly)

Returns the value of attribute vehicleDestroys.



5
6
7
# File 'lib/pubg/match/participants/attributes.rb', line 5

def vehicleDestroys
  @vehicleDestroys
end

#walkDistanceObject (readonly)

Returns the value of attribute walkDistance.



5
6
7
# File 'lib/pubg/match/participants/attributes.rb', line 5

def walkDistance
  @walkDistance
end

#weaponsAcquiredObject (readonly)

Returns the value of attribute weaponsAcquired.



5
6
7
# File 'lib/pubg/match/participants/attributes.rb', line 5

def weaponsAcquired
  @weaponsAcquired
end

#winPlaceObject (readonly)

Returns the value of attribute winPlace.



5
6
7
# File 'lib/pubg/match/participants/attributes.rb', line 5

def winPlace
  @winPlace
end

#winPointsObject (readonly)

Returns the value of attribute winPoints.



5
6
7
# File 'lib/pubg/match/participants/attributes.rb', line 5

def winPoints
  @winPoints
end

#winPointsDeltaObject (readonly)

Returns the value of attribute winPointsDelta.



5
6
7
# File 'lib/pubg/match/participants/attributes.rb', line 5

def winPointsDelta
  @winPointsDelta
end