Class: OFX::Document::IncludeTransactions

Inherits:
StatementRequest show all
Defined in:
lib/ofx/document/include_transactions.rb

Instance Method Summary collapse

Methods inherited from StatementRequest

#bank_account, #include_transactions

Methods inherited from StatementTransaction

#statement_request, #trnuid

Methods inherited from BankMessageSet

#statement_request

Methods inherited from OFX::Document

#bank, #signon

Methods inherited from Aggregate

#root

Constructor Details

#initialize(options = {}) ⇒ IncludeTransactions

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

#dtendObject



19
20
21
# File 'lib/ofx/document/include_transactions.rb', line 19

def dtend
  date(@end || Date.today)
end

#dtstartObject



15
16
17
# File 'lib/ofx/document/include_transactions.rb', line 15

def dtstart
  date(@start || Date.today - 30)
end

#includeObject



11
12
13
# File 'lib/ofx/document/include_transactions.rb', line 11

def include
  include? ? 'Y' : 'N'
end