Class: OrganizzeImporter::Parsers::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/organizze_importer/parsers/base.rb

Direct Known Subclasses

OFX

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#importerObject (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_fieldsObject

Raises:

  • (NotImplementedError)


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_fieldsObject

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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