Class: OFX::Document::BankMessageSet

Inherits:
OFX::Document show all
Defined in:
lib/ofx/document/bank_message_set.rb

Direct Known Subclasses

StatementTransaction

Instance Method Summary collapse

Methods inherited from OFX::Document

#bank, #signon

Methods inherited from Aggregate

#root

Constructor Details

#initialize(options = {}) ⇒ BankMessageSet

Returns a new instance of BankMessageSet.



5
6
7
8
9
10
11
12
# File 'lib/ofx/document/bank_message_set.rb', line 5

def initialize(options = {})
  @routing = options[:routing]
  @account = options[:account]
  @start = options[:start]
  @end = options[:end]
  @id = options[:id]
  super
end

Instance Method Details

#statement_requestObject



14
15
16
17
18
19
20
21
22
23
# File 'lib/ofx/document/bank_message_set.rb', line 14

def statement_request
  StatementTransaction.new(
    name: :stmttrnrq,
    routing: @routing,
    account: @account,
    start: @start,
    end: @end,
    id: trnuid
  )
end