summaryrefslogtreecommitdiff
path: root/lib/rest-client-wrapper.rb
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2012-10-11 15:16:44 +0200
committerAndreas Maunz <andreas@maunz.de>2012-10-11 15:16:44 +0200
commitf1028bbed9f5b00391c66bf843eb95a39253ccf4 (patch)
tree515b41a93a13449abf0807c8b0d4e7dceac09c57 /lib/rest-client-wrapper.rb
parentfb278d6d54b81e64ca81a76cccdfd0c71ac5f394 (diff)
Fixed RestClientWrapper description
Diffstat (limited to 'lib/rest-client-wrapper.rb')
-rw-r--r--lib/rest-client-wrapper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rest-client-wrapper.rb b/lib/rest-client-wrapper.rb
index 67a6264..1258339 100644
--- a/lib/rest-client-wrapper.rb
+++ b/lib/rest-client-wrapper.rb
@@ -6,7 +6,7 @@ module OpenTox
# REST methods
# Raises OpenTox::Error if call fails (rescued in overwrite.rb -> halt 502)
- # Waits for Task to finish and returns result URI of Task per default
+ # Does not wait for task to finish and returns task uri
# @param [String] destination URI
# @param [optional,Hash|String] Payload data posted to the service
# @param [optional,Hash] Headers with params like :accept, :content_type, :subjectid
@@ -46,7 +46,7 @@ module OpenTox
message = response.to_s
parameters = request.args
parameters[:headers][:subjectid] = "REMOVED" if parameters[:headers] and parameters[:headers][:subjectid]
- message += "\nREST paramenters:\n#{parameters.inspect}"
+ message += "\nREST parameters:\n#{parameters.inspect}"
error = known_errors.collect{|e| e if e[:code] == response.code}.compact.first
Object.method(error[:method]).call message, uri # call error method
else