Class: OFX::Data::Banking::Statement::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/ofx/data/banking/statement/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#accountObject (readonly)

Returns the value of attribute account.



6
7
8
# File 'lib/ofx/data/banking/statement/response.rb', line 6

def 
  @account
end

#available_balanceObject (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

#curdefObject (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_dateObject (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_balanceObject (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_infoObject (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_dateObject (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

#transactionsObject (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_typeObject



20
21
22
# File 'lib/ofx/data/banking/statement/response.rb', line 20

def ofx_type
  :"banking.statement.response"
end