sirportly 1.2.4 → 1.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sirportly.rb +1 -1
- data/lib/sirportly/request.rb +9 -1
- metadata +1 -1
data/lib/sirportly.rb
CHANGED
data/lib/sirportly/request.rb
CHANGED
@@ -46,7 +46,15 @@ module Sirportly
|
|
46
46
|
end
|
47
47
|
|
48
48
|
http_result = http.request(http_request)
|
49
|
-
|
49
|
+
|
50
|
+
if @output == 'true'
|
51
|
+
@output = true
|
52
|
+
elsif @output == 'false'
|
53
|
+
@output = false
|
54
|
+
else
|
55
|
+
@output = JSON.parse(http_result.body)
|
56
|
+
end
|
57
|
+
|
50
58
|
@success = case http_result
|
51
59
|
when Net::HTTPSuccess
|
52
60
|
true
|