Module: TalltyImportExport::Importable::ClassMethods
- Defined in:
- lib/tallty_import_export/importable.rb
Instance Method Summary collapse
- #exchange_to_ids(xlsx_file, associations, **options) ⇒ Object
- #export_template_xlsx(**options) ⇒ Object
- #import_data(data, associations, **opts) ⇒ Object
- #import_excel_klass ⇒ Object
- #import_instance ⇒ Object
- #import_xlsx(xlsx_file, associations, **opts) ⇒ Object
Instance Method Details
#exchange_to_ids(xlsx_file, associations, **options) ⇒ Object
28 29 30 |
# File 'lib/tallty_import_export/importable.rb', line 28 def exchange_to_ids xlsx_file, associations, ** import_instance.exchange_to_ids(xlsx_file, associations, **) end |
#export_template_xlsx(**options) ⇒ Object
32 33 34 |
# File 'lib/tallty_import_export/importable.rb', line 32 def export_template_xlsx ** import_instance.export_template_xlsx(**) end |
#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_klass ⇒ Object
24 25 26 |
# File 'lib/tallty_import_export/importable.rb', line 24 def import_excel_klass import_instance.tallty_excel end |
#import_instance ⇒ Object
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 |