Class: Zazu::Resources::Beneficiaries
- Defined in:
- lib/zazu/resources/beneficiaries.rb
Overview
Read-only directory of saved transfer recipients. Each
beneficiary embeds its bank accounts; the one flagged default
is used when a transfer names only the beneficiary_id.
Beneficiaries are created and managed in the Zazu dashboard.
Constant Summary
Constants inherited from Base
Zazu::Resources::Base::MAX_PER_PAGE
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#get(id) ⇒ Object
GET /api/beneficiaries/:id.
-
#list(limit: MAX_PER_PAGE, cursor: nil) ⇒ Object
GET /api/beneficiaries.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Zazu::Resources::Base
Instance Method Details
#get(id) ⇒ Object
GET /api/beneficiaries/:id
16 17 18 |
# File 'lib/zazu/resources/beneficiaries.rb', line 16 def get(id) http_get(encode_path("api/beneficiaries", id)) end |
#list(limit: MAX_PER_PAGE, cursor: nil) ⇒ Object
GET /api/beneficiaries
11 12 13 |
# File 'lib/zazu/resources/beneficiaries.rb', line 11 def list(limit: MAX_PER_PAGE, cursor: nil) list_page("api/beneficiaries", limit: limit, cursor: cursor) end |