Class: OFX::Statement::Output::CreditCard
- Inherits:
-
Base
- Object
- Base
- OFX::Statement::Output::CreditCard
show all
- Defined in:
- lib/ofx/statement/output/credit_card.rb
Instance Method Summary
collapse
Methods inherited from Base
#create_builder, #fitid_hash, #generate_fitid, #generate_trntype, #ledger_balance_block, #ofx_block, #serialise, #signon_block, #time_to_ofx_dta, #transaction_block, #transaction_list, trntype_hash
Instance Method Details
#message_set_block(node) ⇒ Object
7
8
9
10
|
# File 'lib/ofx/statement/output/credit_card.rb', line 7
def message_set_block(node)
return node.CREDITCARDMSGSETV1 unless block_given?
node.CREDITCARDMSGSETV1 { |child| yield(child) }
end
|
#statement_block(node, statement) ⇒ Object
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/ofx/statement/output/credit_card.rb', line 12
def statement_block(node, statement)
node.CCSTMTTRNRS do |ccstmttrnrs|
ccstmttrnrs.CCSTMTRS do |ccstmtrs|
ccstmtrs.CURDEF statement.currency
ccstmtrs.CCACCTFROM do |ccacctfrom|
ccacctfrom.ACCTID statement.account_number
end
transaction_list(ccstmtrs, statement) { |list_node| yield(list_node) if block_given? }
ledger_balance_block(ccstmtrs, statement)
ccstmtrs.AVAILBAL do |availbal|
availbal.BALAMT statement.available_credit
availbal.DTASOF time_to_ofx_dta(statement.date)
end
end
end
end
|