class GoCardlessPro::Resources::Institution
Institutions that are supported when creating [Bank Authorisations](billing-requests-bank-authorisations).
Attributes
icon_url[R]
id[R]
logo_url[R]
name[R]
Public Class Methods
new(object, response = nil)
click to toggle source
Initialize a institution resource instance @param object [Hash] an object returned from the API
# File lib/gocardless_pro/resources/institution.rb, line 25 def initialize(object, response = nil) @object = object @icon_url = object['icon_url'] @id = object['id'] @logo_url = object['logo_url'] @name = object['name'] @response = response end
Public Instance Methods
api_response()
click to toggle source
# File lib/gocardless_pro/resources/institution.rb, line 35 def api_response ApiResponse.new(@response) end
to_h()
click to toggle source
Provides the institution resource as a hash of all its readable attributes
# File lib/gocardless_pro/resources/institution.rb, line 40 def to_h @object end