Class: Bunq::Payment
- Inherits:
-
Object
- Object
- Bunq::Payment
- Defined in:
- lib/bunq/payment.rb
Overview
Instance Method Summary collapse
-
#initialize(parent_resource, id) ⇒ Payment
constructor
A new instance of Payment.
- #show ⇒ Object
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
#show ⇒ Object
11 12 13 |
# File 'lib/bunq/payment.rb', line 11 def show @resource.with_session { @resource.get }['Response'] end |