class Para::Exporter::Table

Public Instance Methods

headers() click to toggle source
# File lib/para/exporter/table.rb, line 10
def headers
  fields.map do |field|
    encode(model.human_attribute_name(field))
  end
end
row_for(resource) click to toggle source
# File lib/para/exporter/table.rb, line 16
def row_for(resource)
  fields.map do |field|
    encode(resource.send(field))
  end
end