Class: Import
- Inherits:
-
Object
- Object
- Import
- Includes:
- ActiveModel::Model
- Defined in:
- app/models/import.rb
Instance Attribute Summary collapse
-
#import_file ⇒ Object
Returns the value of attribute import_file.
-
#importer_key ⇒ Object
Returns the value of attribute importer_key.
Instance Method Summary collapse
Instance Attribute Details
#import_file ⇒ Object
Returns the value of attribute import_file.
4 5 6 |
# File 'app/models/import.rb', line 4 def import_file @import_file end |
#importer_key ⇒ Object
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
#filepath ⇒ Object
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 |