lib/groupdocs/document.rb in groupdocs-0.3.8 vs lib/groupdocs/document.rb in groupdocs-0.3.9
- old
+ new
@@ -41,11 +41,11 @@
# @param [Hash] access Access credentials
# @option access [String] :client_id
# @option access [String] :private_key
# @return [Array<GroupDocs::Document::View>]
#
- def self.views!(options = { page_index: 0 }, access = {})
+ def self.views!(options = {}, access = {})
api = Api::Request.new do |request|
request[:access] = access
request[:method] = :GET
request[:path] = "/doc/{{client_id}}/views"
end
@@ -343,16 +343,13 @@
# @option access [String] :client_id
# @option access [String] :private_key
# @return [GroupDocs::Job]
#
# @raise [ArgumentError] if datasource is not GroupDocs::DataSource object
- # @raise [ArgumentError] if options does not contain :new_type and/or :email_results
#
- def datasource!(datasource, options, access = {})
+ def datasource!(datasource, options = {}, access = {})
datasource.is_a?(GroupDocs::DataSource) or raise ArgumentError,
"Datasource should be GroupDocs::DataSource object, received: #{datasource.inspect}"
- (options[:new_type].nil? || options[:email_results].nil?) and raise ArgumentError,
- "Both :new_type and :email_results should be passed, received: #{options.inspect}"
api = Api::Request.new do |request|
request[:access] = access
request[:method] = :POST
request[:path] = "/merge/{{client_id}}/files/#{file.guid}/datasources/#{datasource.id}"