petems/riot_api — pull request #12 by pcg79 (2013-12-12 17:40:04+00:00)
Title: Implement methods to hit the league endpoint

You should pull https://github.com/petems/riot_api/pull/11 first.

Froggen has an awful lot of league data. :frog:

This feature, I think, underscores the need to implement classes instead of using Hashie. I found some weirdness when testing the feature in irb:

```
>> entries["entries"].first
=> #

>> entries.entries.first
=> ["timestamp", 1386868370660]
```

Where all other API call results I could call a method on the Hashie result, here I have to use Array notation. I have no idea why, I've never used Hashie that much. And b/c I've never used Hashie that much I don't know how hard/easy it'll be to implement classes. I've done a little work with Virtus (https://github.com/solnic/virtus) so hopefully they are similar.