class Bunq::Attachment

Public Class Methods

new(parent_resource, id) click to toggle source
# File lib/bunq/attachment.rb, line 7
def initialize(parent_resource, id)
  @resource = parent_resource.append("/attachment/#{id}")
end

Public Instance Methods

show() click to toggle source
# File lib/bunq/attachment.rb, line 11
def show
  @resource.with_session { @resource.get }['Response']
end