Class: Bunq::Attachment

Inherits:
Object
  • Object
show all
Defined in:
lib/bunq/attachment.rb

Instance Method Summary collapse

Constructor Details

#initialize(parent_resource, id) ⇒ Attachment

Returns a new instance of Attachment.



7
8
9
# File 'lib/bunq/attachment.rb', line 7

def initialize(parent_resource, id)
  @resource = parent_resource.append("/attachment/#{id}")
end

Instance Method Details

#showObject



11
12
13
# File 'lib/bunq/attachment.rb', line 11

def show
  @resource.with_session { @resource.get }['Response']
end