Sha256: fb00929b14ac6e7d4894538d6c78b7716080cd07558fda4a3abc8a4a443bc0e6
Contents?: true
Size: 443 Bytes
Versions: 29
Compression:
Stored size: 443 Bytes
Contents
class Agilibox::Serializers::AXLSX < Agilibox::Serializers::Base def render_inline xlsx.to_stream.read.force_encoding("BINARY") end def render_file(file_path) xlsx.serialize(file_path) end def xlsx @xlsx ||= Axlsx::Package.new do |p| p.workbook.add_worksheet do |sheet| formatted_data.each do |line| sheet.add_row(line) end end p.use_shared_strings = true end end end
Version data entries
29 entries across 29 versions & 1 rubygems