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.
4 5 6 |
# File 'lib/bunq/payment.rb', line 4 def initialize(parent_resource, id) @resource = parent_resource.append("/payment/#{id}") end |
Instance Method Details
#show ⇒ Object
9 10 11 |
# File 'lib/bunq/payment.rb', line 9 def show @resource.with_session { @resource.get }['Response'] end |