summaryrefslogtreecommitdiff
path: root/lib/sampling
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2014-04-28 23:57:48 -0400
committerLuke Shumaker <shumakl@purdue.edu>2014-04-28 23:57:48 -0400
commit7297cff5b674a61fd57ccc46eb75173011bd205c (patch)
tree1e62d875fb4b25507261a5ef72d82d3cc473c68d /lib/sampling
parentdd4c9e16c529bdbf0d055b279ed2dadc0c2aae13 (diff)
fix riot_api
Diffstat (limited to 'lib/sampling')
-rw-r--r--lib/sampling/riot_api.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/sampling/riot_api.rb b/lib/sampling/riot_api.rb
index 18a5ee7..bbe9cea 100644
--- a/lib/sampling/riot_api.rb
+++ b/lib/sampling/riot_api.rb
@@ -62,10 +62,11 @@ module Sampling
if status[0] != "200"
raise "GET #{@url} => #{status.join(" ")}"
end
- self.handle(data)
+ return self.handle(data)
end
def handle(data)
+ return true
end
end
@@ -176,7 +177,6 @@ module Sampling
super("v1.3/game/by-summoner/%{summonerId}/recent", { :summonerId => summoner["id"] })
end
def handle(data)
- puts("handling...")
user = User.find(@user_id)
match = Match.find(@match_id)
if @last_game_id.nil?
@@ -191,7 +191,6 @@ module Sampling
end
end
end
- puts("done handling")
end
end