Class: Rito::CurrentGame::Participant

Inherits:
ApiBase
  • Object
show all
Defined in:
lib/rito/current_game/participant.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 = {}) ⇒ Participant

Returns a new instance of Participant


14
15
16
17
18
# File 'lib/rito/current_game/participant.rb', line 14

def initialize(attributes = {})
	self.masteries = Rito::CurrentGame::Mastery.from_list(attributes.delete('masteries')) if attributes['masteries']
	self.runes = Rito::CurrentGame::Rune.from_list(attributes.delete('runes')) if attributes['runes']
	super
end

Instance Attribute Details

#botObject

Returns the value of attribute bot


3
4
5
# File 'lib/rito/current_game/participant.rb', line 3

def bot
  @bot
end

#championIdObject

Returns the value of attribute championId


3
4
5
# File 'lib/rito/current_game/participant.rb', line 3

def championId
  @championId
end

#masteriesObject

Returns the value of attribute masteries


3
4
5
# File 'lib/rito/current_game/participant.rb', line 3

def masteries
  @masteries
end

#profileIconIdObject

Returns the value of attribute profileIconId


3
4
5
# File 'lib/rito/current_game/participant.rb', line 3

def profileIconId
  @profileIconId
end

#runesObject

Returns the value of attribute runes


3
4
5
# File 'lib/rito/current_game/participant.rb', line 3

def runes
  @runes
end

#spell1IdObject

Returns the value of attribute spell1Id


3
4
5
# File 'lib/rito/current_game/participant.rb', line 3

def spell1Id
  @spell1Id
end

#spell2IdObject

Returns the value of attribute spell2Id


3
4
5
# File 'lib/rito/current_game/participant.rb', line 3

def spell2Id
  @spell2Id
end

#summonerIdObject

Returns the value of attribute summonerId


3
4
5
# File 'lib/rito/current_game/participant.rb', line 3

def summonerId
  @summonerId
end

#summonerNameObject

Returns the value of attribute summonerName


3
4
5
# File 'lib/rito/current_game/participant.rb', line 3

def summonerName
  @summonerName
end

#teamIdObject

Returns the value of attribute teamId


3
4
5
# File 'lib/rito/current_game/participant.rb', line 3

def teamId
  @teamId
end