Class: PreventGo::BankAccount

Inherits:
Base
  • Object
show all
Defined in:
lib/prevent_go/bank_account.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#document_controls, #document_details, #document_type, #holder_controls, #initialize, #quality_validated?

Constructor Details

This class inherits a constructor from PreventGo::Base

Instance Attribute Details

#paramsObject

Returns the value of attribute params.



9
10
11
# File 'lib/prevent_go/bank_account.rb', line 9

def params
  @params
end

#requestObject

Returns the value of attribute request.



9
10
11
# File 'lib/prevent_go/bank_account.rb', line 9

def request
  @request
end

Instance Method Details

#bicObject



11
12
13
# File 'lib/prevent_go/bank_account.rb', line 11

def bic
  @request.dig('documentDetails', 'bicCode')
end

#ibanObject



15
16
17
# File 'lib/prevent_go/bank_account.rb', line 15

def iban
  @request.dig('documentDetails', 'iban')
end