Class: OFX::Document
- Inherits:
-
Aggregate
show all
- Defined in:
- lib/ofx/document.rb,
lib/ofx/document/bank_account.rb,
lib/ofx/document/signon_request.rb,
lib/ofx/document/bank_message_set.rb,
lib/ofx/document/statement_request.rb,
lib/ofx/document/signon_message_set.rb,
lib/ofx/document/include_transactions.rb,
lib/ofx/document/financial_institution.rb,
lib/ofx/document/statement_transaction.rb
Defined Under Namespace
Classes: BankAccount, BankMessageSet, FinancialInstitution, IncludeTransactions, SignonMessageSet, SignonRequest, StatementRequest, StatementTransaction
Instance Method Summary
collapse
Methods inherited from Aggregate
#root
Constructor Details
#initialize(options = {}) ⇒ Document
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/ofx/document.rb', line 7
def initialize(options = {})
@start = options[:start] || (Date.today - 30)
@end = options[:end] || Date.today
@uri = options[:uri]
@user = options[:user]
@password = options[:password]
@routing = options[:routing]
@account = options[:account]
@fi_org = options[:fi_org]
@fi_fid = options[:fi_fid]
@app_id = options[:app_id]
@app_ver = options[:app_ver]
super
end
|
Instance Method Details
#bank ⇒ Object
35
36
37
38
39
40
41
42
43
44
|
# File 'lib/ofx/document.rb', line 35
def bank
BankMessageSet.new(
name: :bankmsgsrqv1,
routing: routing,
account: account,
id: trnuid,
start: @start,
end: @end
)
end
|
#signon ⇒ Object
22
23
24
25
26
27
28
29
30
31
32
33
|
# File 'lib/ofx/document.rb', line 22
def signon
SignonMessageSet.new(
name: :signonmsgsrqv1,
time: Time.now.strftime('%Y%m%d%H%M%S'),
user: user,
password: password,
fi_org: fi_org,
fi_fid: fi_fid,
app_id: app_id,
app_ver: app_ver
)
end
|