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.2.0'
DATE =
'2013-02-23'
AUTHOR =
'Chris Joakim'
EMAIL =
'[email protected]'
SOURCE_QUICKEN =
'quicken'
SOURCE_IBANK =
'ibank'

Class Method Summary collapse

Class Method Details

.csv_category_field_namesObject



14
15
16
# File 'lib/qiflib_constants.rb', line 14

def self.csv_category_field_names
  %w( id name )
end

.csv_transaction_field_namesObject



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
    ibank_n
    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
    eol_ind
  )
end