class Bunq::AttachmentPublicContent
Public Class Methods
new(client, id)
click to toggle source
# File lib/bunq/attachment_public_content.rb, line 7 def initialize(client, id) @resource = Bunq::Resource.new(client, "/v1/attachment-public/#{id}/content") end
Public Instance Methods
show()
click to toggle source
doc.bunq.com/api/1/call/attachment-public-content/method/list Returns the raw content of a public attachment with given ID. The raw content is the binary representation of a file.
# File lib/bunq/attachment_public_content.rb, line 15 def show @resource.with_session do @resource.get(&:body) end end