Class: OrganizzeImporter::Parsers::OFX
- Inherits:
-
Base
- Object
- Base
- OrganizzeImporter::Parsers::OFX
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
Instance Attribute Details
#parsed_ofx ⇒ Object
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
#account ⇒ Object
14
15
16
|
# File 'lib/organizze_importer/parsers/ofx.rb', line 14
def account
parsed_ofx.account
end
|
#collection ⇒ Object
18
19
20
|
# File 'lib/organizze_importer/parsers/ofx.rb', line 18
def collection
account.transactions
end
|
#collection_fields ⇒ Object
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_fields ⇒ Object
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
|