class GoCardlessPro::Resources::MandatePdf
Mandate
PDFs allow you to easily display [scheme-rules compliant](appendix-compliance-requirements) Direct Debit mandates to your customers.
Attributes
Public Class Methods
Source
# File lib/gocardless_pro/resources/mandate_pdf.rb, line 21 def initialize(object, response = nil) @object = object @expires_at = object['expires_at'] @url = object['url'] @response = response end
Initialize a mandate_pdf resource instance @param object [Hash] an object returned from the API
Public Instance Methods
Source
# File lib/gocardless_pro/resources/mandate_pdf.rb, line 29 def api_response ApiResponse.new(@response) end
Source
# File lib/gocardless_pro/resources/mandate_pdf.rb, line 34 def to_h @object end
Provides the mandate_pdf resource as a hash of all its readable attributes