Class: Bunq::Users
- Inherits:
-
Object
- Object
- Bunq::Users
- Defined in:
- lib/bunq/users.rb
Instance Method Summary collapse
- #index(count: 200, older_id: nil, newer_id: nil) ⇒ Object
-
#initialize(client) ⇒ Users
constructor
A new instance of Users.
Constructor Details
#initialize(client) ⇒ Users
Returns a new instance of Users.
7 8 9 |
# File 'lib/bunq/users.rb', line 7 def initialize(client) @resource = Bunq::Resource.new(client, "/v1/user") end |
Instance Method Details
#index(count: 200, older_id: nil, newer_id: nil) ⇒ Object
11 12 13 14 15 |
# File 'lib/bunq/users.rb', line 11 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 |