Class: Bunq::Payment

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

Overview

Instance Method Summary collapse

Constructor Details

#initialize(parent_resource, id) ⇒ Payment

Returns a new instance of Payment.



6
7
8
# File 'lib/bunq/payment.rb', line 6

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

Instance Method Details

#showObject



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

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