Class: OFX::Document
- 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
Direct Known Subclasses
Defined Under Namespace
Classes: BankAccount, BankMessageSet, FinancialInstitution, IncludeTransactions, SignonMessageSet, SignonRequest, StatementRequest, StatementTransaction
Instance Method Summary collapse
- #bank ⇒ Object
-
#initialize(options = {}) ⇒ Document
constructor
A new instance of Document.
- #signon ⇒ Object
Methods inherited from Aggregate
Constructor Details
#initialize(options = {}) ⇒ Document
Returns a new instance of Document.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/ofx/document.rb', line 7 def initialize( = {}) @start = [:start] || (Date.today - 30) @end = [:end] || Date.today @uri = [:uri] @user = [:user] @password = [:password] @routing = [:routing] @account = [:account] @fi_org = [:fi_org] @fi_fid = [:fi_fid] @app_id = [:app_id] @app_ver = [: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 |