Class: Storytime::Importers::Importer
- Inherits:
-
Object
- Object
- Storytime::Importers::Importer
- Defined in:
- lib/storytime/importers/importer.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#creator ⇒ Object
Returns the value of attribute creator.
-
#file ⇒ Object
Returns the value of attribute file.
-
#file_content ⇒ Object
Returns the value of attribute file_content.
Instance Method Summary collapse
-
#initialize(input_file, importer) ⇒ Importer
constructor
A new instance of Importer.
Constructor Details
#initialize(input_file, importer) ⇒ Importer
Returns a new instance of Importer.
8 9 10 11 12 |
# File 'lib/storytime/importers/importer.rb', line 8 def initialize(input_file, importer) self.file = input_file self.file_content = input_file.read self.creator = importer end |
Instance Attribute Details
#creator ⇒ Object
Returns the value of attribute creator.
6 7 8 |
# File 'lib/storytime/importers/importer.rb', line 6 def creator @creator end |
#file ⇒ Object
Returns the value of attribute file.
4 5 6 |
# File 'lib/storytime/importers/importer.rb', line 4 def file @file end |
#file_content ⇒ Object
Returns the value of attribute file_content.
5 6 7 |
# File 'lib/storytime/importers/importer.rb', line 5 def file_content @file_content end |