riot-api-ruby

Tiny wrapper for riot league of legends api written in ruby

Get a key

See at https://developer.riotgames.com/sign-in Keep it secret!

Load and Launch

# Load the wrapper
require './riot-api-ruby'

# Instanciate a new RiotApi object for query riot servers!
# Replace API::KEY by the real key.
api = RiotApi::RiotApi.new('API::KEY')

# Need an example? Ok! Check my summoner info
player = api.getSummonerByName('Lamasticouille', 'euw')
puts player

Documentation

http://rubydoc.info/github/gmourier/riot-api-ruby/master/frames

Contribute

  • 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