class GoCardlessPro::Resources::Institution
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.
Attributes
Public Class Methods
Source
# 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'] @limits = object['limits'] @logo_url = object['logo_url'] @name = object['name'] @status = object['status'] @response = response end
Initialize a institution resource instance @param object [Hash] an object returned from the API
Public Instance Methods
Source
# File lib/gocardless_pro/resources/institution.rb, line 38 def api_response ApiResponse.new(@response) end
Source
# File lib/gocardless_pro/resources/institution.rb, line 43 def to_h @object end
Provides the institution resource as a hash of all its readable attributes