fixed commit

This commit is contained in:
danijoo
2013-12-15 16:10:11 +01:00
parent 6c536078eb
commit d08682d917
4 changed files with 5 additions and 4 deletions

View File

@@ -6,6 +6,7 @@ require 'sightstone/modules/game_module'
require 'sightstone/modules/league_module'
require 'sightstone/modules/stats_module'
require 'sightstone/modules/team_module'
#require 'sightstone/modules/datadragon_module'
# This is the main class of the Sightstone gem. All calls should be perfomrmed through this class.
# @attr [String] region The default region

View File

@@ -7,7 +7,7 @@ class ChampionModule < SightstoneBaseModule
@sightstone = sightstone
end
def champions(, optional={})
def champions(optional={})
region = optional[:region] || @sightstone.region
free_to_play = optional[:free_to_play]
uri = "https://prod.api.pvp.net/api/lol/#{region}/v1.1/champion"

View File

@@ -8,8 +8,8 @@ class StatsModule < SightstoneBaseModule
@sightstone = sightstone
end
def summary(summoner, , optional={})
region = optional[:region] || @sightstone.region)
def summary(summoner, optional={})
region = optional[:region] || @sightstone.region
season = optional[:season]
id = if summoner.is_a? Summoner