Class: OFX::Data::Banking::Statement::Response
- Inherits:
-
Object
- Object
- OFX::Data::Banking::Statement::Response
- Defined in:
- lib/ofx/data/banking/statement/response.rb
Instance Attribute Summary collapse
-
#account ⇒ Object
readonly
Returns the value of attribute account.
-
#available_balance ⇒ Object
readonly
Returns the value of attribute available_balance.
-
#curdef ⇒ Object
readonly
Returns the value of attribute curdef.
-
#end_date ⇒ Object
readonly
Returns the value of attribute end_date.
-
#ledger_balance ⇒ Object
readonly
Returns the value of attribute ledger_balance.
-
#marketing_info ⇒ Object
readonly
Returns the value of attribute marketing_info.
-
#start_date ⇒ Object
readonly
Returns the value of attribute start_date.
-
#transactions ⇒ Object
readonly
Returns the value of attribute transactions.
Instance Method Summary collapse
-
#initialize(opts) ⇒ Response
constructor
A new instance of Response.
- #ofx_type ⇒ Object
Constructor Details
#initialize(opts) ⇒ Response
Returns a new instance of Response.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/ofx/data/banking/statement/response.rb', line 9 def initialize(opts) @curdef = opts.fetch(:curdef) @account = opts.fetch(:account) @ledger_balance = opts.fetch(:ledger_balance) @available_balance = opts.fetch(:available_balance) @start_date = opts.fetch(:start_date) @end_date = opts.fetch(:end_date) @transactions = opts.fetch(:transactions, []) @marketing_info = opts.fetch(:marketing_info, "") end |
Instance Attribute Details
#account ⇒ Object (readonly)
Returns the value of attribute account.
6 7 8 |
# File 'lib/ofx/data/banking/statement/response.rb', line 6 def account @account end |
#available_balance ⇒ Object (readonly)
Returns the value of attribute available_balance.
6 7 8 |
# File 'lib/ofx/data/banking/statement/response.rb', line 6 def available_balance @available_balance end |
#curdef ⇒ Object (readonly)
Returns the value of attribute curdef.
6 7 8 |
# File 'lib/ofx/data/banking/statement/response.rb', line 6 def curdef @curdef end |
#end_date ⇒ Object (readonly)
Returns the value of attribute end_date.
6 7 8 |
# File 'lib/ofx/data/banking/statement/response.rb', line 6 def end_date @end_date end |
#ledger_balance ⇒ Object (readonly)
Returns the value of attribute ledger_balance.
6 7 8 |
# File 'lib/ofx/data/banking/statement/response.rb', line 6 def ledger_balance @ledger_balance end |
#marketing_info ⇒ Object (readonly)
Returns the value of attribute marketing_info.
6 7 8 |
# File 'lib/ofx/data/banking/statement/response.rb', line 6 def marketing_info @marketing_info end |
#start_date ⇒ Object (readonly)
Returns the value of attribute start_date.
6 7 8 |
# File 'lib/ofx/data/banking/statement/response.rb', line 6 def start_date @start_date end |
#transactions ⇒ Object (readonly)
Returns the value of attribute transactions.
6 7 8 |
# File 'lib/ofx/data/banking/statement/response.rb', line 6 def transactions @transactions end |
Instance Method Details
#ofx_type ⇒ Object
20 21 22 |
# File 'lib/ofx/data/banking/statement/response.rb', line 20 def ofx_type :"banking.statement.response" end |