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

Version Path
agilibox-1.9.20 app/serializers/agilibox/serializers/xlsx.rb
agilibox-1.9.19 app/serializers/agilibox/serializers/xlsx.rb
agilibox-1.9.18 app/serializers/agilibox/serializers/xlsx.rb
agilibox-1.9.17 app/serializers/agilibox/serializers/xlsx.rb
agilibox-1.9.16 app/serializers/agilibox/serializers/xlsx.rb
agilibox-1.9.15 app/serializers/agilibox/serializers/xlsx.rb
agilibox-1.9.14 app/serializers/agilibox/serializers/xlsx.rb
agilibox-1.9.13 app/serializers/agilibox/serializers/xlsx.rb
agilibox-1.9.12 app/serializers/agilibox/serializers/xlsx.rb
agilibox-1.9.11 app/serializers/agilibox/serializers/xlsx.rb
agilibox-1.9.10 app/serializers/agilibox/serializers/xlsx.rb
agilibox-1.9.9 app/serializers/agilibox/serializers/xlsx.rb
agilibox-1.9.8 app/serializers/agilibox/serializers/xlsx.rb
agilibox-1.9.7 app/serializers/agilibox/serializers/xlsx.rb