class GoCardlessPro::Resources::Export
File-based exports of data
Attributes
Public Class Methods
Source
# File lib/gocardless_pro/resources/export.rb, line 19 def initialize(object, response = nil) @object = object @created_at = object['created_at'] @currency = object['currency'] @download_url = object['download_url'] @export_type = object['export_type'] @id = object['id'] @response = response end
Initialize a export resource instance @param object [Hash] an object returned from the API
Public Instance Methods
Source
# File lib/gocardless_pro/resources/export.rb, line 30 def api_response ApiResponse.new(@response) end
Source
# File lib/gocardless_pro/resources/export.rb, line 35 def to_h @object end
Provides the export resource as a hash of all its readable attributes