Class: Pluggy::Services::LoanService
- Inherits:
-
BaseService
- Object
- BaseService
- Pluggy::Services::LoanService
- Defined in:
- lib/pluggy/services/other_services.rb
Instance Method Summary collapse
-
#list(item_id:) ⇒ Object
GET /loans.
- #retrieve(id) ⇒ Object
Methods inherited from BaseService
Constructor Details
This class inherits a constructor from Pluggy::Services::BaseService
Instance Method Details
#list(item_id:) ⇒ Object
GET /loans. Note loans are scoped by ITEM, not by account.
69 70 71 72 |
# File 'lib/pluggy/services/other_services.rb', line 69 def list(item_id:) require_args!(item_id: item_id) list_request("/loans", klass: Resources::Loan, itemId: item_id) end |
#retrieve(id) ⇒ Object
74 75 76 77 |
# File 'lib/pluggy/services/other_services.rb', line 74 def retrieve(id) require_args!(id: id) object_request(:get, "/loans/#{id}", klass: Resources::Loan) end |