lib/app42/client/app42_rest_client.rb in app42-0.5.5 vs lib/app42/client/app42_rest_client.rb in app42-0.5.6

- old
+ new

@@ -12,17 +12,15 @@ def initialize(host= HOST)#:nodoc: @host = host @exception_msg = nil end - # # @param signature # @param url # @param params # @return # @rescue Exception - # def get(signature, url, params) params.store("signature", signature) resource, json_obj = "", nil resource << @host << url resource = URI.escape(resource).gsub("+", "%20") @@ -96,18 +94,16 @@ #app42_client_info message "#{Message::SERVER_ERROR}", true, 'red' exit! end - # # @param signature # @param url # @param params # @param bodyPayload # @return # @rescue Exception - # def post(signature, url, params, body) params.store("signature", signature) resource = "" resource << @host << url resource = URI.escape(resource).gsub("+", "%20") @@ -179,18 +175,16 @@ #app42_client_info message "#{Message::SERVER_ERROR}", true, 'red' exit! end - # # @param signature # @param url # @param params # @param bodyPayload # @return # @rescue Exception - # def put(signature, url, params, body) params.store("signature", signature) resource = "" resource << @host << url resource = URI.escape(resource).gsub("+", "%20") @@ -262,16 +256,14 @@ #app42_client_info message "#{Message::SERVER_ERROR}", true, 'red' exit! end - # # @param signature # @param url # @param params # @return # @rescue Exception - # def delete(signature, url, params) params.store("signature", signature) resource = "" resource << @host << url resource = URI.escape(resource).gsub("+", "%20") \ No newline at end of file