Class: LolApi::Team

Inherits:
Object
  • Object
show all
Defined in:
lib/lol_api/types/dtos/team.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw_team) ⇒ Team

Returns a new instance of Team.



5
6
7
# File 'lib/lol_api/types/dtos/team.rb', line 5

def initialize(raw_team)
	@raw_team = raw_team
end

Instance Attribute Details

#raw_teamObject (readonly)

Returns the value of attribute raw_team.



3
4
5
# File 'lib/lol_api/types/dtos/team.rb', line 3

def raw_team
  @raw_team
end

Instance Method Details

#bansObject



8
9
10
# File 'lib/lol_api/types/dtos/team.rb', line 8

def bans
	raw_team['bans']
end

#baron_killsObject



12
13
14
# File 'lib/lol_api/types/dtos/team.rb', line 12

def baron_kills
	raw_team['baronKills']
end

#dragon_killsObject



16
17
18
# File 'lib/lol_api/types/dtos/team.rb', line 16

def dragon_kills
	raw_team['dragonKills']
end

#first_baronObject



20
21
22
# File 'lib/lol_api/types/dtos/team.rb', line 20

def first_baron
	raw_team['firstBaron']
end

#first_bloodObject



24
25
26
# File 'lib/lol_api/types/dtos/team.rb', line 24

def first_blood
	raw_team['firstBlood']
end

#first_inhibitorObject



28
29
30
# File 'lib/lol_api/types/dtos/team.rb', line 28

def first_inhibitor
	raw_team['firstInhibitor']
end

#first_towerObject



32
33
34
# File 'lib/lol_api/types/dtos/team.rb', line 32

def first_tower
	raw_team['firstTower']
end

#inhibitor_killsObject



36
37
38
# File 'lib/lol_api/types/dtos/team.rb', line 36

def inhibitor_kills
	raw_team['inhibitorKills']
end

#team_idObject



40
41
42
# File 'lib/lol_api/types/dtos/team.rb', line 40

def team_id
	raw_team['teamId']
end

#tower_killsObject



44
45
46
# File 'lib/lol_api/types/dtos/team.rb', line 44

def tower_kills
	raw_team['towerKills']
end

#vilemaw_killsObject



48
49
50
# File 'lib/lol_api/types/dtos/team.rb', line 48

def vilemaw_kills
	raw_team['vilemawKills']
end

#winnerObject



52
53
54
# File 'lib/lol_api/types/dtos/team.rb', line 52

def winner
	raw_team['winner']
end