added optional region to every call

This commit is contained in:
danijoo
2013-12-15 01:05:23 +01:00
parent 25a4a6148e
commit 6600841e8a
7 changed files with 36 additions and 22 deletions

View File

@@ -11,7 +11,7 @@ class Sightstone
attr_accessor :region, :api_key
attr_accessor :summoner, :champion, :game, :league, :stats, :team
def initialize(api_key, region)
def initialize(api_key, region='euw')
@api_key = api_key
@region = region