Module: SequencescapeExcel::Helpers::Download

Included in:
BulkSubmissionExcel::Download, SampleManifestExcel::Download, SampleManifestExcel::TestDownload
Defined in:
app/sequencescape_excel/sequencescape_excel/helpers/download.rb

Overview

Just a little help to create a workbook, package and save that package.

Instance Method Summary collapse

Instance Method Details

#save(filename) ⇒ Object



8
9
10
# File 'app/sequencescape_excel/sequencescape_excel/helpers/download.rb', line 8

def save(filename)
  xls.serialize(filename)
end

#workbookObject



16
17
18
# File 'app/sequencescape_excel/sequencescape_excel/helpers/download.rb', line 16

def workbook
  @workbook ||= xls.workbook
end

#xlsObject



12
13
14
# File 'app/sequencescape_excel/sequencescape_excel/helpers/download.rb', line 12

def xls
  @xls ||= Axlsx::Package.new
end