Class: Wowr::Classes::FullArenaTeam
- Defined in:
- lib/wowr/arena_team.rb
Overview
<teamInfo> <arenaTeam battleGroup=“Vindication” faction=“Alliance” factionId=“0” gamesPlayed=“6” gamesWon=“1” lastSeasonRanking=“4118” name=“Monkey” ranking=“6522” rating=“1535” realm=“Burning Blade” realmUrl=“b=Vindication&r=Burning+Blade&ts=2&t=Monkey&ff=realm&fv=Burning+Blade&select=Monkey” relevance=“0” seasonGamesPlayed=“66” seasonGamesWon=“34” size=“2” url=“r=Burning+Blade&ts=2&t=Monkey&select=Monkey” urlEscape=“r=Burning+Blade&ts=2&t=Monkey&select=Monkey”> <emblem background=“ff70de56” borderColor=“ffcc73eb” borderStyle=“6” iconColor=“ffe3b320” iconStyle=“44”/> <members> <character battleGroup=“Vindication” charUrl=“r=Burning+Blade&n=Fandiar” class=“Priest” classId=“5” contribution=“1380” gamesPlayed=“0” gamesWon=“0” gender=“Male” genderId=“0” guild=“Legends” guildId=“916” guildUrl=“r=Burning+Blade&n=Legends&p=1” name=“Fandiar” race=“Night Elf” raceId=“4” realm=“Burning Blade” seasonGamesPlayed=“18” seasonGamesWon=“1” teamRank=“0”/> <character battleGroup=“Vindication” charUrl=“r=Burning+Blade&n=Stayfrosty” class=“Mage” classId=“8” contribution=“1460” gamesPlayed=“6” gamesWon=“1” gender=“Male” genderId=“0” guild=“Legends” guildId=“916” guildUrl=“r=Burning+Blade&n=Legends&p=1” name=“Stayfrosty” race=“Human” raceId=“1” realm=“Burning Blade” seasonGamesPlayed=“6” seasonGamesWon=“1” teamRank=“1”/> <character battleGroup=“Vindication” charUrl=“r=Burning+Blade&n=Step” class=“Rogue” classId=“4” contribution=“1688” gamesPlayed=“2” gamesWon=“1” gender=“Female” genderId=“1” guild=“Legends” guildId=“916” guildUrl=“r=Burning+Blade&n=Legends&p=1” name=“Step” race=“Human” raceId=“1” realm=“Burning Blade” seasonGamesPlayed=“44” seasonGamesWon=“33” teamRank=“1”/> </members> </arenaTeam> </teamInfo>
Instance Attribute Summary
Attributes inherited from ArenaTeam
#battle_group, #characters, #emblem, #faction, #faction_id, #games_played, #games_won, #last_season_ranking, #name, #ranking, #rating, #realm, #realm_url, #relevance, #season_games_played, #season_games_won, #size, #url, #url_escape
Instance Method Summary collapse
-
#initialize(elem) ⇒ FullArenaTeam
constructor
A new instance of FullArenaTeam.
Constructor Details
#initialize(elem) ⇒ FullArenaTeam
Returns a new instance of FullArenaTeam.
56 57 58 59 60 61 62 63 64 |
# File 'lib/wowr/arena_team.rb', line 56 def initialize(elem) super(elem) # @ranking = elem[:ranking].to_i @members = {} (elem%'members'/:character).each do |character| @members[character[:name]] = SearchCharacter.new(character) end end |