added leagues call

This commit is contained in:
danijoo
2013-12-13 11:08:27 +01:00
parent 95efda9f87
commit 452aced320
4 changed files with 133 additions and 1 deletions

View File

@@ -3,10 +3,11 @@ require 'JSON'
require 'sightstone/modules/champion_module'
require 'sightstone/modules/summoner_module'
require 'sightstone/modules/game_module'
require 'sightstone/modules/league_module'
class Sightstone
attr_accessor :region, :api_key
attr_accessor :summoner, :champion, :game
attr_accessor :summoner, :champion, :game, :league
def initialize(api_key, region)
@api_key = api_key
@@ -15,6 +16,7 @@ class Sightstone
@summoner = SummonerModule.new(self)
@champion = ChampionModule.new(self)
@game = GameModule.new(self)
@league = LeagueModule.new(self)
end
end