RiotApi
Gem to easily interact with the Riot API
Installation
Add this line to your application's Gemfile:
gem 'riotapi'
And then execute:
$ bundle
Or install it yourself as:
$ gem install riotapi
Usage
First set the enviroment variable RIOT_API_KEY
with the key provided by Riot, or
configure the gem with your key
RiotAPI.configure do |config|
config.api_key = 'YOU_API_KEY_HERE'
end
You could additionally set the endpoint region with config.region=
to any of the slugs from RiotAPI::Region.all
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/riot_api.