Class: Bunq::MonetaryAccounts

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

Overview

Instance Method Summary collapse

Constructor Details

#initialize(parent_resource) ⇒ MonetaryAccounts

Returns a new instance of MonetaryAccounts.



5
6
7
# File 'lib/bunq/monetary_accounts.rb', line 5

def initialize(parent_resource)
  @resource = parent_resource.append("/monetary-account")
end

Instance Method Details

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



10
11
12
13
14
# File 'lib/bunq/monetary_accounts.rb', line 10

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