Riot API
A Ruby wrapper around connecting to the Riot API
Early days yet, but trying to make it as modular as possible :cat:
Installation
Add this line to your application's Gemfile:
gem 'riot_api'
And then execute:
$ bundle
Or install it yourself as:
$ gem install riot_api
Usage:
First, you'll need to go to http://developer.riotgames.com/ and get an API key.
require 'riot_api'
# Create Instace of the API
ra = RiotApi::API.new :api_key => 'API_KEY_HERE', :region => 'euw', :debug => true
# Search by Summoner name
summoner_details = ra.summoner.name('Best Lux EUW')
#<Hashie::Rash id=44600324 name="Best Lux EUW" profile_icon_id=7 revision_date=1375116256000 revision_date_str="07/29/2013 04:44 PM UTC" summoner_level=6>
summoner.name # => "Best Lux EUW"
ChangeLog / History / Releases
see the CHANGELOG.md file.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
Testing
bundle install
If adding new test:
RECORDING=1 RIOT_API_KEY=your-api-key rspec
If running existing tests:
rspec
Contributors
- None Yet :)
For more information and a complete list see the contributor page on GitHub.
License
Thanks
- @rmoriz - For the excellent digital_ocean gem, which I used as a framework to setup this gem! :+1:


