Sha256: 2afb105775cc124e13b84b13abe2df7c6254d98ac766ed2cc52598eff94b39c2

Contents?: true

Size: 261 Bytes

Versions: 15

Compression:

Stored size: 261 Bytes

Contents

class Agilibox::Serializers::XLSX < Agilibox::Serializers::Base
  def render_inline
    SpreadsheetArchitect.to_xlsx(data: formatted_data)
  end

  def render_file(file_path)
    File.open(file_path, "w+b") do |f|
      f.write(render_inline)
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
agilibox-1.9.6 app/serializers/agilibox/serializers/xlsx.rb
agilibox-1.9.5 app/serializers/agilibox/serializers/xlsx.rb
agilibox-1.9.4 app/serializers/agilibox/serializers/xlsx.rb
agilibox-1.9.3 app/serializers/agilibox/serializers/xlsx.rb
agilibox-1.9.1 app/serializers/agilibox/serializers/xlsx.rb
agilibox-1.9.0 app/serializers/agilibox/serializers/xlsx.rb
agilibox-1.8.0 app/serializers/agilibox/serializers/xlsx.rb
agilibox-1.7.4 app/serializers/agilibox/serializers/xlsx.rb
agilibox-1.7.3 app/serializers/agilibox/serializers/xlsx.rb
agilibox-1.7.2 app/serializers/agilibox/serializers/xlsx.rb
agilibox-1.7.1 app/serializers/agilibox/serializers/xlsx.rb
agilibox-1.7.0 app/serializers/agilibox/serializers/xlsx.rb
agilibox-1.6.2 app/serializers/agilibox/serializers/xlsx.rb
agilibox-1.6.1 app/serializers/agilibox/serializers/xlsx.rb
agilibox-1.6.0 app/serializers/agilibox/serializers/xlsx.rb