# For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby require 'aspose_cells_cloud' class Document include AsposeCellsCloud def initialize #Get client_id and client_secret from https://cloud.aspose.com @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl) end # Unprotect document from changes. def unprotect_document_from_changes name = $BOOK1 folder = $TEMPFOLDER result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) }) expect(result.uploaded.size).to be > 0 result =@instance.cells_workbook_delete_document_unprotect_from_changes(name, { :folder=>folder}) expect(result.code).to eql(200) end end document = Document.new() puts document.unprotect_document_from_changes