lib/groupdocs/post.rb in groupdocs-1.5.5 vs lib/groupdocs/post.rb in groupdocs-1.5.6
- old
+ new
@@ -14,13 +14,11 @@
api = Api::Request.new do |request|
request[:method] = :POST
request[:path] = '/post/file.rename'
end
api.add_params(options)
- json = api.execute!
-
- new(json)
+ api.execute!
end
# Delete by post.
#
# @param [Hash] options
@@ -32,13 +30,11 @@
api = Api::Request.new do |request|
request[:method] = :POST
request[:path] = '/post/file.delete'
end
api.add_params(options)
- json = api.execute!
-
- new(json)
+ api.execute!
end
# Delete from folder by post.
#
# @param [Hash] options
@@ -50,13 +46,11 @@
api = Api::Request.new do |request|
request[:method] = :POST
request[:path] = '/post/file.delete.in'
end
api.add_params(options)
- json = api.execute!
-
- new(json)
+ api.execute!
end
# Compress by post.
#
# @param [Hash] options
@@ -69,12 +63,10 @@
api = Api::Request.new do |request|
request[:method] = :POST
request[:path] = '/post/file.compress'
end
api.add_params(options)
- json = api.execute!
-
- new(json)
+ api.execute!
end
\ No newline at end of file