nowa-top4r 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/top4r/client/suite.rb +1 -1
- data/lib/top4r/version.rb +1 -1
- metadata +1 -1
data/lib/top4r/client/suite.rb
CHANGED
@@ -8,7 +8,7 @@ class Top4R::Client
|
|
8
8
|
u = u.nick if u.is_a?(Top4R::User)
|
9
9
|
params = {:service_code => service_code}.merge(options).merge(:nick => u)
|
10
10
|
response = http_connect {|conn| create_http_get_request(@@SUITE_METHODS[method], params)}
|
11
|
-
suites = Top4R::Suite.unmarshal(JSON.parse(response.body)["rsp"]["
|
11
|
+
suites = Top4R::Suite.unmarshal(JSON.parse(response.body)["rsp"]["suites"])
|
12
12
|
suites.each {|suite| bless_model(suite); yield suite if block_given?}
|
13
13
|
# puts "\nsuites: #{suites.inspect}"
|
14
14
|
@total_results = JSON.parse(response.body)["rsp"]["totalResults"].to_i
|
data/lib/top4r/version.rb
CHANGED