Class: ColumnFilter

Inherits:
Transform show all
Defined in:
app/transforms/column_filter.rb

Instance Attribute Summary

Attributes inherited from Transform

#settings, #table

Instance Method Summary collapse

Methods inherited from Transform

#columns, display_name, form_keys, #initialize, #setting, transforms

Constructor Details

This class inherits a constructor from Transform

Instance Method Details

#resultObject



2
3
4
5
6
# File 'app/transforms/column_filter.rb', line 2

def result
  to_remove = table.column_names - columns
  table.remove_columns(to_remove)
  table
end