Class: CloudmersiveConvertApiClient::CompareDocumentApi
- Inherits:
-
Object
- Object
- CloudmersiveConvertApiClient::CompareDocumentApi
- Defined in:
- lib/cloudmersive-convert-api-client/api/compare_document_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#compare_document_docx(input_file1, input_file2, opts = {}) ⇒ String
Compare Two Word DOCX Compare two Office Word Documents (docx) files and highlight the differences.
-
#compare_document_docx_with_http_info(input_file1, input_file2, opts = {}) ⇒ Array<(String, Fixnum, Hash)>
Compare Two Word DOCX Compare two Office Word Documents (docx) files and highlight the differences.
-
#initialize(api_client = ApiClient.default) ⇒ CompareDocumentApi
constructor
A new instance of CompareDocumentApi.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ CompareDocumentApi
Returns a new instance of CompareDocumentApi.
19 20 21 |
# File 'lib/cloudmersive-convert-api-client/api/compare_document_api.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/cloudmersive-convert-api-client/api/compare_document_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#compare_document_docx(input_file1, input_file2, opts = {}) ⇒ String
Compare Two Word DOCX Compare two Office Word Documents (docx) files and highlight the differences
29 30 31 32 |
# File 'lib/cloudmersive-convert-api-client/api/compare_document_api.rb', line 29 def compare_document_docx(input_file1, input_file2, opts = {}) data, _status_code, _headers = compare_document_docx_with_http_info(input_file1, input_file2, opts) return data end |
#compare_document_docx_with_http_info(input_file1, input_file2, opts = {}) ⇒ Array<(String, Fixnum, Hash)>
Compare Two Word DOCX Compare two Office Word Documents (docx) files and highlight the differences
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/cloudmersive-convert-api-client/api/compare_document_api.rb', line 40 def compare_document_docx_with_http_info(input_file1, input_file2, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: CompareDocumentApi.compare_document_docx ..." end # verify the required parameter 'input_file1' is set if @api_client.config.client_side_validation && input_file1.nil? fail ArgumentError, "Missing the required parameter 'input_file1' when calling CompareDocumentApi.compare_document_docx" end # verify the required parameter 'input_file2' is set if @api_client.config.client_side_validation && input_file2.nil? fail ArgumentError, "Missing the required parameter 'input_file2' when calling CompareDocumentApi.compare_document_docx" end # resource path local_var_path = "/convert/compare/docx" # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data']) # form parameters form_params = {} form_params["inputFile1"] = input_file1 form_params["inputFile2"] = input_file2 # http body (model) post_body = nil auth_names = ['Apikey'] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'String') if @api_client.config.debugging @api_client.config.logger.debug "API called: CompareDocumentApi#compare_document_docx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |