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.



7
8
9
# File 'lib/bunq/monetary_accounts.rb', line 7

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

Instance Method Details

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



12
13
14
15
16
# File 'lib/bunq/monetary_accounts.rb', line 12

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