class GoCardlessPro::Resources::TransferredMandate
Mandates that have been transferred using Current Account Switch Service
Attributes
Public Class Methods
Source
# File lib/gocardless_pro/resources/transferred_mandate.rb, line 19 def initialize(object, response = nil) @object = object @encrypted_customer_bank_details = object['encrypted_customer_bank_details'] @encrypted_decryption_key = object['encrypted_decryption_key'] @links = object['links'] @public_key_id = object['public_key_id'] @response = response end
Initialize a transferred_mandate resource instance @param object [Hash] an object returned from the API
Public Instance Methods
Source
# File lib/gocardless_pro/resources/transferred_mandate.rb, line 29 def api_response ApiResponse.new(@response) end
Source
# File lib/gocardless_pro/resources/transferred_mandate.rb, line 34 def links @transferred_mandate_links ||= Links.new(@links) end
Return the links that the resource has
Source
# File lib/gocardless_pro/resources/transferred_mandate.rb, line 39 def to_h @object end
Provides the transferred_mandate resource as a hash of all its readable attributes