Class: Storytime::Importers::Importer

Inherits:
Object
  • Object
show all
Defined in:
lib/storytime/importers/importer.rb

Direct Known Subclasses

Wordpress

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#creatorObject

Returns the value of attribute creator.



6
7
8
# File 'lib/storytime/importers/importer.rb', line 6

def creator
  @creator
end

#fileObject

Returns the value of attribute file.



4
5
6
# File 'lib/storytime/importers/importer.rb', line 4

def file
  @file
end

#file_contentObject

Returns the value of attribute file_content.



5
6
7
# File 'lib/storytime/importers/importer.rb', line 5

def file_content
  @file_content
end