From ebc571749ea315836deb153d68b6334d897fab9c Mon Sep 17 00:00:00 2001 From: danijoo Date: Fri, 13 Dec 2013 19:10:36 +0100 Subject: [PATCH] fix --- lib/sightstone.rb | 4 +++- lib/sightstone/summoner.rb | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/sightstone.rb b/lib/sightstone.rb index e23b665..b8eceee 100644 --- a/lib/sightstone.rb +++ b/lib/sightstone.rb @@ -5,10 +5,11 @@ require 'sightstone/modules/summoner_module' require 'sightstone/modules/game_module' require 'sightstone/modules/league_module' require 'sightstone/modules/stats_module' +require 'sightstone/modules/team_module' class Sightstone attr_accessor :region, :api_key - attr_accessor :summoner, :champion, :game, :league, :stats + attr_accessor :summoner, :champion, :game, :league, :stats, :team def initialize(api_key, region) @api_key = api_key @@ -19,6 +20,7 @@ class Sightstone @game = GameModule.new(self) @league = LeagueModule.new(self) @stats = StatsModule.new(self) + @team = TeamModule.new(self) end end diff --git a/lib/sightstone/summoner.rb b/lib/sightstone/summoner.rb index e31810d..c5120fc 100644 --- a/lib/sightstone/summoner.rb +++ b/lib/sightstone/summoner.rb @@ -2,13 +2,13 @@ class Summoner - attr_accessor :name, :id, :profile_icon_id, :revision_date, :level + attr_accessor :name, :id, :profileIconId, :revisionDate, :level def initialize(data) @name = data['name'] @id = data['id'] - @profile_icon_id = data['profileIconId'] - @revision_date = data['revisionDate'] + @profileIconId = data['profileIconId'] + @revisionDate = data['revisionDate'] @level = data['summonerLevel'] end