# For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby require 'aspose_cells_cloud' class Cell 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 # Get worksheet merged cells. def get_worksheet_merged_cells name = $BOOK1 sheet_name = $SHEET1 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_worksheets_get_worksheet_merged_cells(name, sheet_name, { :folder=>folder}) expect(result.code).to eql(200) end end cell = Cell.new() puts cell.get_worksheet_merged_cells