class GoCardlessPro::Resources::MandatePdf

Mandate PDFs allow you to easily display [scheme-rules compliant](appendix-compliance-requirements) Direct Debit mandates to your customers.

Attributes

expires_at[R]
url[R]

Public Class Methods

new(object, response = nil) click to toggle source

Initialize a mandate_pdf resource instance @param object [Hash] an object returned from the API

# File lib/gocardless_pro/resources/mandate_pdf.rb, line 24
def initialize(object, response = nil)
  @object = object

  @expires_at = object['expires_at']
  @url = object['url']
  @response = response
end

Public Instance Methods

api_response() click to toggle source
# File lib/gocardless_pro/resources/mandate_pdf.rb, line 32
def api_response
  ApiResponse.new(@response)
end
to_h() click to toggle source

Provides the mandate_pdf resource as a hash of all its readable attributes

# File lib/gocardless_pro/resources/mandate_pdf.rb, line 37
def to_h
  @object
end