class PensioAPI::FundingList
Attributes
acquirer[R]
amount[R]
created_at[R]
download_link[R]
filename[R]
funding_date[R]
Public Class Methods
all(options={})
click to toggle source
# File lib/pensio_api/funding_list.rb, line 10 def self.all(options={}) request = Request.new('/merchant/API/fundingList', options) Responses::FundingList.new(request) end
new(funding_list_body)
click to toggle source
# File lib/pensio_api/funding_list.rb, line 15 def initialize(funding_list_body) @raw = funding_list_body @filename = @raw['Filename'] @amount = @raw['Amount'] @acquirer = @raw['Acquirer'] @funding_date = Date.parse(@raw['FundingDate']) @created_at = Date.parse(@raw['CreatedDate']) @download_link = @raw['DownloadLink'].strip end
Public Instance Methods
download(options={})
click to toggle source
# File lib/pensio_api/funding_list.rb, line 26 def download(options={}) @result ||= FundingListRequest.new(@download_link, options).result end