Class: Bunq::Payments

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

Overview

Instance Method Summary collapse

Constructor Details

#initialize(parent_resource) ⇒ Payments

Returns a new instance of Payments.



8
9
10
# File 'lib/bunq/payments.rb', line 8

def initialize(parent_resource)
  @resource = parent_resource.append('/payment')
end

Instance Method Details

#index(count: 200, older_id: nil, newer_id: nil) ⇒ Object



13
14
15
16
17
# File 'lib/bunq/payments.rb', line 13

def index(count: 200, older_id: nil, newer_id: nil)
  Bunq::Paginated
    .new(@resource)
    .paginate(count: count, older_id: older_id, newer_id: newer_id)
end