Class: GoCardlessPro::Resources::Institution
- Inherits:
-
Object
- Object
- GoCardlessPro::Resources::Institution
- Defined in:
- lib/gocardless_pro/resources/institution.rb
Overview
Institutions that are supported when creating [Bank Authorisations](#billing-requests-bank-authorisations) for a particular country or purpose.
Not all institutions support both Payment Initiation (PIS) and Account Information (AIS) services.
Instance Attribute Summary collapse
-
#autocompletes_collect_bank_account ⇒ Object
readonly
Returns the value of attribute autocompletes_collect_bank_account.
-
#country_code ⇒ Object
readonly
Returns the value of attribute country_code.
-
#icon_url ⇒ Object
readonly
Returns the value of attribute icon_url.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#logo_url ⇒ Object
readonly
Returns the value of attribute logo_url.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #api_response ⇒ Object
-
#initialize(object, response = nil) ⇒ Institution
constructor
Initialize a institution resource instance.
-
#to_h ⇒ Object
Provides the institution resource as a hash of all its readable attributes.
Constructor Details
#initialize(object, response = nil) ⇒ Institution
Initialize a institution resource instance
24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/gocardless_pro/resources/institution.rb', line 24 def initialize(object, response = nil) @object = object @autocompletes_collect_bank_account = object['autocompletes_collect_bank_account'] @country_code = object['country_code'] @icon_url = object['icon_url'] @id = object['id'] @logo_url = object['logo_url'] @name = object['name'] @response = response end |
Instance Attribute Details
#autocompletes_collect_bank_account ⇒ Object (readonly)
Returns the value of attribute autocompletes_collect_bank_account.
20 21 22 |
# File 'lib/gocardless_pro/resources/institution.rb', line 20 def autocompletes_collect_bank_account @autocompletes_collect_bank_account end |
#country_code ⇒ Object (readonly)
Returns the value of attribute country_code.
20 21 22 |
# File 'lib/gocardless_pro/resources/institution.rb', line 20 def country_code @country_code end |
#icon_url ⇒ Object (readonly)
Returns the value of attribute icon_url.
20 21 22 |
# File 'lib/gocardless_pro/resources/institution.rb', line 20 def icon_url @icon_url end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
20 21 22 |
# File 'lib/gocardless_pro/resources/institution.rb', line 20 def id @id end |
#logo_url ⇒ Object (readonly)
Returns the value of attribute logo_url.
20 21 22 |
# File 'lib/gocardless_pro/resources/institution.rb', line 20 def logo_url @logo_url end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
20 21 22 |
# File 'lib/gocardless_pro/resources/institution.rb', line 20 def name @name end |
Instance Method Details
#api_response ⇒ Object
36 37 38 |
# File 'lib/gocardless_pro/resources/institution.rb', line 36 def api_response ApiResponse.new(@response) end |
#to_h ⇒ Object
Provides the institution resource as a hash of all its readable attributes
41 42 43 |
# File 'lib/gocardless_pro/resources/institution.rb', line 41 def to_h @object end |