class DbToFile::Unloader::Table

Public Class Methods

new(table_name, unloader) click to toggle source
# File lib/db_to_file/unloader.rb, line 53
def initialize(table_name, unloader)
  @table    = table_name.singularize.classify.constantize
  @unloader = unloader
end

Public Instance Methods

unload() click to toggle source
# File lib/db_to_file/unloader.rb, line 58
def unload
  @table.all.each do |row|
    Record.new(row, self).fields_to_files
  end
end