class GoCardlessPro::Resources::BankDetailsLookup
Look up the name and reachability of a bank account.
Attributes
available_debit_schemes[R]
bank_name[R]
bic[R]
Public Class Methods
new(object, response = nil)
click to toggle source
Initialize a bank_details_lookup resource instance @param object [Hash] an object returned from the API
# File lib/gocardless_pro/resources/bank_details_lookup.rb, line 23 def initialize(object, response = nil) @object = object @available_debit_schemes = object['available_debit_schemes'] @bank_name = object['bank_name'] @bic = object['bic'] @response = response end
Public Instance Methods
api_response()
click to toggle source
# File lib/gocardless_pro/resources/bank_details_lookup.rb, line 32 def api_response ApiResponse.new(@response) end
to_h()
click to toggle source
Provides the bank_details_lookup resource as a hash of all its readable attributes
# File lib/gocardless_pro/resources/bank_details_lookup.rb, line 37 def to_h @object end