Class: OFX::Document::IncludeTransactions
Instance Method Summary
collapse
#bank_account, #include_transactions
#statement_request, #trnuid
#statement_request
#bank, #signon
Methods inherited from Aggregate
#root
Constructor Details
Returns a new instance of IncludeTransactions.
5
6
7
8
9
|
# File 'lib/ofx/document/include_transactions.rb', line 5
def initialize(options = {})
@tag = :inctran
@include = options[:include].nil? ? true : false
super
end
|
Instance Method Details
#dtend ⇒ Object
19
20
21
|
# File 'lib/ofx/document/include_transactions.rb', line 19
def dtend
date(@end || Date.today)
end
|
#dtstart ⇒ Object
15
16
17
|
# File 'lib/ofx/document/include_transactions.rb', line 15
def dtstart
date(@start || Date.today - 30)
end
|
#include ⇒ Object
11
12
13
|
# File 'lib/ofx/document/include_transactions.rb', line 11
def include
include? ? 'Y' : 'N'
end
|