Class: OrganizzeImporter::Parsers::Base
- Inherits:
-
Object
- Object
- OrganizzeImporter::Parsers::Base
- Defined in:
- lib/organizze_importer/parsers/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#importer ⇒ Object
readonly
Returns the value of attribute importer.
Instance Method Summary collapse
- #collection_fields ⇒ Object
-
#initialize(importer) ⇒ Base
constructor
A new instance of Base.
- #main_fields ⇒ Object
- #parse! ⇒ Object
Constructor Details
#initialize(importer) ⇒ Base
Returns a new instance of Base.
7 8 9 |
# File 'lib/organizze_importer/parsers/base.rb', line 7 def initialize(importer) @importer = importer end |
Instance Attribute Details
#importer ⇒ Object (readonly)
Returns the value of attribute importer.
5 6 7 |
# File 'lib/organizze_importer/parsers/base.rb', line 5 def importer @importer end |
Instance Method Details
#collection_fields ⇒ Object
19 20 21 |
# File 'lib/organizze_importer/parsers/base.rb', line 19 def collection_fields raise NotImplementedError, "Please define this method in one of my subclasses" end |
#main_fields ⇒ Object
15 16 17 |
# File 'lib/organizze_importer/parsers/base.rb', line 15 def main_fields raise NotImplementedError, "Please define this method in one of my subclasses" end |
#parse! ⇒ Object
11 12 13 |
# File 'lib/organizze_importer/parsers/base.rb', line 11 def parse! raise NotImplementedError, "Please define this method in one of my subclasses" end |