Class: Importr::Importer

Inherits:
ActiveImporter::Base
  • Object
show all
Defined in:
lib/importr/importer.rb

Instance Method Summary collapse

Constructor Details

#initialize(file, options = {}) ⇒ Importer

Returns a new instance of Importer.



5
6
7
8
9
10
11
12
13
# File 'lib/importr/importer.rb', line 5

def initialize(file, options = {})
  # TODO: ensure that data_import.model_class == self.class.model_class

  super

  if data_import && data_import.finished
    raise "Data import #{data_import.id} was already processed"
  end
end