Class: Workarea::DataFile::TaxImport

Inherits:
Import
  • Object
show all
Defined in:
app/models/workarea/data_file/tax_import.rb

Instance Method Summary collapse

Methods inherited from Import

#error?, #failed, #failure?, #file_name, #log, #process!, #releasable?, #successful?

Methods included from Operation

#complete?, #format, #mime_type, #name, #process!, #sample_file_content, #samples, #tempfile

Methods included from ApplicationDocument

#releasable?

Methods included from Sidekiq::Callbacks

assert_valid_config!, async, disable, enable, inline, #run_callbacks

Methods included from Mongoid::Document

#embedded_children

Instance Method Details

#file_typeObject



18
19
20
# File 'app/models/workarea/data_file/tax_import.rb', line 18

def file_type
  'tax_rates'
end

#model_classObject



10
11
12
# File 'app/models/workarea/data_file/tax_import.rb', line 10

def model_class
  Workarea::Tax::Category
end

#model_typeObject



14
15
16
# File 'app/models/workarea/data_file/tax_import.rb', line 14

def model_type
  Workarea::Tax::Rate.name
end