Sha256: 16e6e753b7bd4a942111a5d862579e32a8a4886a9e650cad54a407cc541bdb1e

Contents?: true

Size: 852 Bytes

Versions: 12

Compression:

Stored size: 852 Bytes

Contents

<?xml version="1.0"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
  xmlns:o="urn:schemas-microsoft-com:office:office"
  xmlns:x="urn:schemas-microsoft-com:office:excel"
  xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
  xmlns:html="http://www.w3.org/TR/REC-html40">
  <Worksheet ss:Name="Sheet1">
    <Table>
      <Row>
        <% @listing.columns.each do |col| %>
          <Cell><Data ss:Type="String"><%= col.human_name %></Data></Cell>
        <% end %>
      </Row>
    <% @listing.items.each do |item| %>
      <Row>
        <% @listing.columns.each do |col| %>
          <% col.value_for(item).tap do |value| %>
            <Cell><Data ss:Type="<%= excel_type(value) %>"><%= excel_value(value) %></Data></Cell>
          <% end %>
        <% end %>
      </Row>
    <% end %>
    </Table>
  </Worksheet>
</Workbook>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
listings-0.1.14 app/views/listings/export.xls.erb
listings-0.1.13 app/views/listings/export.xls.erb
listings-0.1.12 app/views/listings/export.xls.erb
listings-0.1.11 app/views/listings/export.xls.erb
listings-0.1.10 app/views/listings/export.xls.erb
listings-0.1.8 app/views/listings/export.xls.erb
listings-0.1.7 app/views/listings/export.xls.erb
listings-0.1.6 app/views/listings/export.xls.erb
listings-0.1.5 app/views/listings/export.xls.erb
listings-0.1.4 app/views/listings/export.xls.erb
listings-0.1.0 app/views/listings/export.xls.erb
listings-0.0.3 app/views/listings/export.xls.erb