Project

lolapi

0.0
No commit activity in last 3 years
No release in over 3 years
A wrapper for the League of Legends API desc
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.3
>= 0
 Project Readme

League of Legends API Wrapper

A quick little Ruby wrapper for their recent API. This gem is no longer under active development, and is probably no longer compliant with the API.

Installation

You should just be able to do

gem 'lolapi'

This is my first gem however, so I may have mucked something up somewhere. Just let me know!

Example usage:

require 'lolapi'

LoLAPI.configure do |config|
  config.api_key = 'KEY_HERE'
end

puts "Champions:"
puts LoLAPI::get_champions 'na'

puts "Free Champions:"
puts LoLAPI::get_champions 'na', free: true

puts "Summoner by Name:"
puts LoLAPI::get_summoner_by_name 'Sir Desch', 'na'

A full list of methods available:

Champions
LoLAPI::get_champions(region, free: nil)
LoLAPI::get_champions_by_id(champion_id, region, free: nil)

Game
LoLAPI::get_game(summoner_id, region)

League (team_id, summoner_id can be an array of id's)
LoLAPI::get_challenger(region, type)
LoLAPI::get_summoner_league(summoner_id, region, entry: false)
LoLAPI::get_team_league(team_id, region, entry: false)

Static Data
LoLAPI::get_static_champions(region, id: nil, version: nil, locale: nil, data: nil, dataById: nil)
LoLAPI::get_static_items(region, id: nil, version: nil, locale: nil, data: nil)
LoLAPI::get_static_mastery(region, id: nil, version: nil, locale: nil, data: nil)
LoLAPI::get_static_realm(region)
LoLAPI::get_static_runes(region, id: nil, version: nil, locale: nil, data: nil)
LoLAPI::get_static_spells(region, id: nil, version: nil, locale: nil, data: nil, dataById: nil)

Stats
LoLAPI::get_summary(summoner_id, region, season: nil)
LoLAPI::get_ranked(summoner_id, region, season: nil)

Summoner
LoLAPI::get_summoner_by_name(name, region)
LoLAPI::get_summoner_masteries(summoner_id, region)
LoLAPI::get_summoner_runes(summoner_id, region)
LoLAPI::get_summoner(summoner_id, region)
LoLAPI::get_summoner_name(summoner_id, region)

Team (team_id, summoner_id can be an array of ids)
LoLAPI::get_team(team_id, region)
LoLAPI::get_team_by_summoner(summoner_id, region)