class GoCardlessPro::Resources::Logo
Logos are image uploads that, when associated with a creditor, are shown on the [billing request flow](billing-requests-billing-request-flows) payment pages.
Attributes
Public Class Methods
Source
# File lib/gocardless_pro/resources/logo.rb, line 21 def initialize(object, response = nil) @object = object @id = object['id'] @response = response end
Initialize a logo resource instance @param object [Hash] an object returned from the API
Public Instance Methods
Source
# File lib/gocardless_pro/resources/logo.rb, line 28 def api_response ApiResponse.new(@response) end
Source
# File lib/gocardless_pro/resources/logo.rb, line 33 def to_h @object end
Provides the logo resource as a hash of all its readable attributes