Module: TalltyImportExport::Importable::ClassMethods

Defined in:
lib/tallty_import_export/importable.rb

Instance Method Summary collapse

Instance Method Details

#import_data(data, associations, **opts) ⇒ Object



20
21
22
# File 'lib/tallty_import_export/importable.rb', line 20

def import_data data, associations, **opts
  import_instance.import_data(data, associations, **opts)
end

#import_excel_klassObject



24
25
26
# File 'lib/tallty_import_export/importable.rb', line 24

def import_excel_klass
  import_instance.tallty_excel
end

#import_instanceObject



12
13
14
# File 'lib/tallty_import_export/importable.rb', line 12

def import_instance
  const_get('Import').new(self)
end

#import_xlsx(xlsx_file, associations, **opts) ⇒ Object



16
17
18
# File 'lib/tallty_import_export/importable.rb', line 16

def import_xlsx xlsx_file, associations, **opts
  import_instance.import_xlsx(xlsx_file, associations, **opts)
end