rimac 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rimac/version.rb +1 -1
- data/lib/rimac.rb +4 -2
- metadata +1 -1
data/lib/rimac/version.rb
CHANGED
data/lib/rimac.rb
CHANGED
@@ -20,12 +20,14 @@ module Rimac
|
|
20
20
|
options[:page] ||= 0
|
21
21
|
options[:output] = "json_array"
|
22
22
|
|
23
|
+
options[:limit] += 1
|
24
|
+
|
23
25
|
url = url_for('invoke', resource, options)
|
24
26
|
|
25
27
|
response = JSON.parse(Net::HTTP.get_response(URI.parse(url)).body)
|
26
28
|
|
27
|
-
original_result = response["result"]
|
28
|
-
headers = original_result.shift
|
29
|
+
original_result = response["result"].to_a
|
30
|
+
headers = original_result.shift.to_a
|
29
31
|
|
30
32
|
results = []
|
31
33
|
|