Sha256: 105f9e22d52ac3ab7e8c2330ef299093d2c7a72e6cfb837768e3ade48c68dfa9
Contents?: true
Size: 327 Bytes
Versions: 14
Compression:
Stored size: 327 Bytes
Contents
class Agilibox::Serializers::XLSX < Agilibox::Serializers::Base def render_inline headers, *data = formatted_data SpreadsheetArchitect.to_xlsx(headers: headers, data: data, freeze_headers: true) end def render_file(file_path) File.open(file_path, "w+b") do |f| f.write(render_inline) end end end
Version data entries
14 entries across 14 versions & 1 rubygems