Class: OpenDotaApi::Matches::Player

Inherits:
Entity
  • Object
show all
Defined in:
lib/open_dota_api/matches/player.rb

Direct Known Subclasses

OpenDotaApi::Match::Player

Instance Method Summary collapse

Methods inherited from Entity

define_adder, #initialize

Methods included from Entities::Instantiatable

included

Constructor Details

This class inherits a constructor from OpenDotaApi::Entity

Instance Method Details

#account_idObject



14
15
16
# File 'lib/open_dota_api/matches/player.rb', line 14

def 
  data['account_id']
end

#assistsObject



18
19
20
# File 'lib/open_dota_api/matches/player.rb', line 18

def assists
  data['assists']
end

#camps_stackedObject



22
23
24
# File 'lib/open_dota_api/matches/player.rb', line 22

def camps_stacked
  data['camps_stacked']
end

#deathsObject



26
27
28
# File 'lib/open_dota_api/matches/player.rb', line 26

def deaths
  data['deaths']
end

#deniesObject



30
31
32
# File 'lib/open_dota_api/matches/player.rb', line 30

def denies
  data['denies']
end

#firstblood_claimedObject



94
95
96
# File 'lib/open_dota_api/matches/player.rb', line 94

def firstblood_claimed
  data['firstblood_claimed']
end

#gold_per_minObject



34
35
36
# File 'lib/open_dota_api/matches/player.rb', line 34

def gold_per_min
  data['gold_per_min']
end

#hero_damageObject



98
99
100
# File 'lib/open_dota_api/matches/player.rb', line 98

def hero_damage
  data['hero_damage']
end

#hero_healingObject



86
87
88
# File 'lib/open_dota_api/matches/player.rb', line 86

def hero_healing
  data['hero_healing']
end

#hero_idObject



38
39
40
# File 'lib/open_dota_api/matches/player.rb', line 38

def hero_id
  data['hero_id']
end

#kdaObject



74
75
76
# File 'lib/open_dota_api/matches/player.rb', line 74

def kda
  data['kda']
end

#killsObject



42
43
44
# File 'lib/open_dota_api/matches/player.rb', line 42

def kills
  data['kills']
end

#last_hitsObject



90
91
92
# File 'lib/open_dota_api/matches/player.rb', line 90

def last_hits
  data['last_hits']
end

#match_idObject



6
7
8
# File 'lib/open_dota_api/matches/player.rb', line 6

def match_id
  data['match_id']
end

#nameObject



66
67
68
# File 'lib/open_dota_api/matches/player.rb', line 66

def name
  data['name']
end

#obs_placedObject



46
47
48
# File 'lib/open_dota_api/matches/player.rb', line 46

def obs_placed
  data['obs_placed']
end

#player_slotObject



10
11
12
# File 'lib/open_dota_api/matches/player.rb', line 10

def player_slot
  data['player_slot']
end

#roshan_killsObject



82
83
84
# File 'lib/open_dota_api/matches/player.rb', line 82

def roshan_kills
  data['roshan_kills']
end

#rune_pickupsObject



54
55
56
# File 'lib/open_dota_api/matches/player.rb', line 54

def rune_pickups
  data['rune_pickups']
end

#sen_placedObject



50
51
52
# File 'lib/open_dota_api/matches/player.rb', line 50

def sen_placed
  data['sen_placed']
end

#sideObject



70
71
72
# File 'lib/open_dota_api/matches/player.rb', line 70

def side
  data['isRadiant'] ? :radiant : :dire
end

#stunsObject



58
59
60
# File 'lib/open_dota_api/matches/player.rb', line 58

def stuns
  data['stuns']
end

#teamfight_participationObject



102
103
104
# File 'lib/open_dota_api/matches/player.rb', line 102

def teamfight_participation
  data['teamfight_participation']
end

#tower_killsObject



78
79
80
# File 'lib/open_dota_api/matches/player.rb', line 78

def tower_kills
  data['tower_kills']
end

#xp_per_minObject



62
63
64
# File 'lib/open_dota_api/matches/player.rb', line 62

def xp_per_min
  data['xp_per_min']
end