class GoCardlessPro::Resources::BankAccountDetail
Retrieve bank account details in JWE encrypted format
Attributes
Public Class Methods
Source
# File lib/gocardless_pro/resources/bank_account_detail.rb, line 19 def initialize(object, response = nil) @object = object @ciphertext = object['ciphertext'] @encrypted_key = object['encrypted_key'] @iv = object['iv'] @protected = object['protected'] @tag = object['tag'] @response = response end
Initialize a bank_account_detail resource instance @param object [Hash] an object returned from the API
Public Instance Methods
Source
# File lib/gocardless_pro/resources/bank_account_detail.rb, line 30 def api_response ApiResponse.new(@response) end
Source
# File lib/gocardless_pro/resources/bank_account_detail.rb, line 35 def to_h @object end
Provides the bank_account_detail resource as a hash of all its readable attributes