PeterBorah/vigor — pull request #34 by zetsubo (2014-01-03 10:14:55+00:00)
Title: stats endpoints

- some minor refactoring
- added endpoint for multiple summoner lookup
- added endpoints for stats

Multiple Summoners:
```
Vigor.summoners([31640242, 31570201])
=> [#"Idea"}, @id=31640242>, #"LEVEL 60 MAGE"}, @id=31570201>]
```

Stats:
```
2.0.0p247 :004 > idea = Vigor.summoner("idea")
2.0.0p247 :005 > stats = idea.stats
2.0.0p247 :007 > stats["RankedSolo5x5"]
=> #, @wins=87, @stats={"totalChampionKills"=>581, "totalMinionKills"=>9847, "totalTurretsKilled"=>86, "totalNeutralMinionsKilled"=>2400, "totalAssists"=>1671}, @type="RankedSolo5x5">
```

Champion Stats:
```
stats = idea.champion_stats
taric = stats["taric"]
taric["totalAssists"]
=> 51
```

Give me a day to sit on this, I'm not 100% happy with how the stats classes are structured, so I might wake up with some better ideas.