Class: GoCardlessPro::Resources::BankDetailsLookup
- Inherits:
-
Object
- Object
- GoCardlessPro::Resources::BankDetailsLookup
- Defined in:
- lib/gocardless_pro/resources/bank_details_lookup.rb
Overview
Look up the name and reachability of a bank account.
Instance Attribute Summary collapse
-
#available_debit_schemes ⇒ Object
readonly
Returns the value of attribute available_debit_schemes.
-
#bank_name ⇒ Object
readonly
Returns the value of attribute bank_name.
-
#bic ⇒ Object
readonly
Returns the value of attribute bic.
Instance Method Summary collapse
- #api_response ⇒ Object
-
#initialize(object, response = nil) ⇒ BankDetailsLookup
constructor
Initialize a bank_details_lookup resource instance.
-
#to_h ⇒ Object
Provides the bank_details_lookup resource as a hash of all its readable attributes.
Constructor Details
#initialize(object, response = nil) ⇒ BankDetailsLookup
Initialize a bank_details_lookup resource instance
23 24 25 26 27 28 29 30 |
# 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 |
Instance Attribute Details
#available_debit_schemes ⇒ Object (readonly)
Returns the value of attribute available_debit_schemes.
17 18 19 |
# File 'lib/gocardless_pro/resources/bank_details_lookup.rb', line 17 def available_debit_schemes @available_debit_schemes end |
#bank_name ⇒ Object (readonly)
Returns the value of attribute bank_name.
18 19 20 |
# File 'lib/gocardless_pro/resources/bank_details_lookup.rb', line 18 def bank_name @bank_name end |
#bic ⇒ Object (readonly)
Returns the value of attribute bic.
19 20 21 |
# File 'lib/gocardless_pro/resources/bank_details_lookup.rb', line 19 def bic @bic end |
Instance Method Details
#api_response ⇒ Object
32 33 34 |
# File 'lib/gocardless_pro/resources/bank_details_lookup.rb', line 32 def api_response ApiResponse.new(@response) end |
#to_h ⇒ Object
Provides the bank_details_lookup resource as a hash of all its readable attributes
37 38 39 |
# File 'lib/gocardless_pro/resources/bank_details_lookup.rb', line 37 def to_h @object end |