Class: Unit::Statement::GetBankVerificationPdf

Inherits:
Object
  • Object
show all
Defined in:
lib/unit/models/statement/get_bank_verification_pdf.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(account_id, include_proof_of_funds: false) ⇒ GetBankVerificationPdf

Returns a new instance of GetBankVerificationPdf.

Parameters:

  • account_id (String)
  • include_proof_of_funds (Boolean) (defaults to: false)


12
13
14
15
# File 'lib/unit/models/statement/get_bank_verification_pdf.rb', line 12

def initialize(, include_proof_of_funds: false)
  @account_id = 
  @include_proof_of_funds = include_proof_of_funds
end

Instance Attribute Details

#account_idObject

Returns the value of attribute account_id.



8
9
10
# File 'lib/unit/models/statement/get_bank_verification_pdf.rb', line 8

def 
  @account_id
end

#include_proof_of_fundsObject

Returns the value of attribute include_proof_of_funds.



8
9
10
# File 'lib/unit/models/statement/get_bank_verification_pdf.rb', line 8

def include_proof_of_funds
  @include_proof_of_funds
end

Instance Method Details

#to_hashObject



17
18
19
20
# File 'lib/unit/models/statement/get_bank_verification_pdf.rb', line 17

def to_hash
  params = { "includeProofOfFunds": include_proof_of_funds }
  params.compact
end