Exception: DataImp::NoImporter

Inherits:
StandardError
  • Object
show all
Defined in:
lib/data_imp/no_importer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(porter_type) ⇒ NoImporter

Returns a new instance of NoImporter.



3
4
5
6
7
8
9
# File 'lib/data_imp/no_importer.rb', line 3

def initialize(porter_type)
  @porter_type = porter_type
  super <<-MSG.strip_heredoc
    Unable to find Importer for #{porter_type.inspect}
    Please define: class #{porter_type.classify}Importer < DataImp::Porter
  MSG
end

Instance Attribute Details

#porter_typeObject

Returns the value of attribute porter_type.



2
3
4
# File 'lib/data_imp/no_importer.rb', line 2

def porter_type
  @porter_type
end