Module: Qiflib
- Defined in:
- lib/qiflib_constants.rb,
lib/qiflib_date.rb,
lib/qiflib_util.rb,
lib/qiflib_money.rb,
lib/qiflib_category.rb,
lib/qiflib_transaction.rb
Overview
This file, and Qiflib module, define constant values used in this library. This include the lists of field names within the csv and delimited files.
Defined Under Namespace
Classes: Category, Date, Money, Transaction, Util
Constant Summary
collapse
- VERSION =
'0.6.0'
- DATE =
'2013-12-15'
- AUTHOR =
'Chris Joakim'
- EMAIL =
'[email protected]'
- SOURCE_QUICKEN =
'quicken'
- SOURCE_IBANK =
'ibank'
Class Method Summary
collapse
Class Method Details
.csv_category_field_names ⇒ Object
14
15
16
|
# File 'lib/qiflib_constants.rb', line 14
def self.csv_category_field_names
%w( id name )
end
|
.csv_transaction_field_map ⇒ Object
51
52
53
54
55
56
57
|
# File 'lib/qiflib_constants.rb', line 51
def self.csv_transaction_field_map
hash = {}
Qiflib.csv_transaction_field_names.each_with_index { | field, index |
hash[index] = field
}
hash
end
|
.csv_transaction_field_names ⇒ Object
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# File 'lib/qiflib_constants.rb', line 18
def self.csv_transaction_field_names
%w(
id
acct_owner
acct_name
acct_type
date
amount
number
cleared
payee
category
memo
split1_amount
split1_category
split1_memo
split2_amount
split2_category
split2_memo
split3_amount
split3_category
split3_memo
address1
address2
address3
address4
address5
address6
end_balance
eol_ind
)
end
|