Class: Rito::Match::Team

Inherits:
ApiBase show all
Defined in:
lib/rito/match/team.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ApiBase

#attributes=, call_api, from_list, from_map, from_map_of_lists

Constructor Details

#initialize(attributes = {}) ⇒ Team

Returns a new instance of Team


18
19
20
21
# File 'lib/rito/match/team.rb', line 18

def initialize(attributes = {})
	self.bans = Rito::Match::BannedChampion.from_list(attributes.delete('bans')) if attributes['bans']
	super
end

Instance Attribute Details

#bansObject

Returns the value of attribute bans


3
4
5
# File 'lib/rito/match/team.rb', line 3

def bans
  @bans
end

#baronKillsObject

Returns the value of attribute baronKills


3
4
5
# File 'lib/rito/match/team.rb', line 3

def baronKills
  @baronKills
end

#dominionVictoryScoreObject

Returns the value of attribute dominionVictoryScore


3
4
5
# File 'lib/rito/match/team.rb', line 3

def dominionVictoryScore
  @dominionVictoryScore
end

#dragonKillsObject

Returns the value of attribute dragonKills


3
4
5
# File 'lib/rito/match/team.rb', line 3

def dragonKills
  @dragonKills
end

#firstBaronObject

Returns the value of attribute firstBaron


3
4
5
# File 'lib/rito/match/team.rb', line 3

def firstBaron
  @firstBaron
end

#firstBloodObject

Returns the value of attribute firstBlood


3
4
5
# File 'lib/rito/match/team.rb', line 3

def firstBlood
  @firstBlood
end

#firstDragonObject

Returns the value of attribute firstDragon


3
4
5
# File 'lib/rito/match/team.rb', line 3

def firstDragon
  @firstDragon
end

#firstInhibitorObject

Returns the value of attribute firstInhibitor


3
4
5
# File 'lib/rito/match/team.rb', line 3

def firstInhibitor
  @firstInhibitor
end

#firstTowerObject

Returns the value of attribute firstTower


3
4
5
# File 'lib/rito/match/team.rb', line 3

def firstTower
  @firstTower
end

#inhibitorKillsObject

Returns the value of attribute inhibitorKills


3
4
5
# File 'lib/rito/match/team.rb', line 3

def inhibitorKills
  @inhibitorKills
end

#teamIdObject

Returns the value of attribute teamId


3
4
5
# File 'lib/rito/match/team.rb', line 3

def teamId
  @teamId
end

#towerKillsObject

Returns the value of attribute towerKills


3
4
5
# File 'lib/rito/match/team.rb', line 3

def towerKills
  @towerKills
end

#vilemawKillsObject

Returns the value of attribute vilemawKills


3
4
5
# File 'lib/rito/match/team.rb', line 3

def vilemawKills
  @vilemawKills
end

#winnerObject

Returns the value of attribute winner


3
4
5
# File 'lib/rito/match/team.rb', line 3

def winner
  @winner
end