Class: Import

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model
Defined in:
app/models/import.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#import_fileObject

Returns the value of attribute import_file.



4
5
6
# File 'app/models/import.rb', line 4

def import_file
  @import_file
end

#importer_keyObject

Returns the value of attribute importer_key.



4
5
6
# File 'app/models/import.rb', line 4

def importer_key
  @importer_key
end

Instance Method Details

#filepathObject



8
9
10
# File 'app/models/import.rb', line 8

def filepath
  import_file.respond_to?(:path) ? import_file.path : File.dirname(import_file)
end