Class: OrganizzeImporter::Parsers::OFX

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

Instance Attribute Summary collapse

Attributes inherited from Base

#importer

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from OrganizzeImporter::Parsers::Base

Instance Attribute Details

#parsed_ofxObject (readonly)

Returns the value of attribute parsed_ofx.



5
6
7
# File 'lib/organizze_importer/parsers/ofx.rb', line 5

def parsed_ofx
  @parsed_ofx
end

Instance Method Details

#accountObject



14
15
16
# File 'lib/organizze_importer/parsers/ofx.rb', line 14

def 
  parsed_ofx.
end

#collectionObject



18
19
20
# File 'lib/organizze_importer/parsers/ofx.rb', line 18

def collection
  .transactions
end

#collection_fieldsObject



26
27
28
# File 'lib/organizze_importer/parsers/ofx.rb', line 26

def collection_fields
  @collection_fields ||= [:amount, :amount_in_pennies, :check_number, :fit_id, :memo, :name, :payee, :posted_at, :ref_number, :type]
end

#main_fieldsObject



22
23
24
# File 'lib/organizze_importer/parsers/ofx.rb', line 22

def main_fields
  @main_fields ||= [:balance, :bank_id, :currency, :id, :transactions, :type]
end

#parse!Object



10
11
12
# File 'lib/organizze_importer/parsers/ofx.rb', line 10

def parse!
  @parsed_ofx = OFX(importer.file)
end