Class: Alma::Loan
- Inherits:
-
AlmaRecord
- Object
- AlmaRecord
- Alma::Loan
- Defined in:
- lib/alma/loan.rb
Instance Method Summary collapse
Methods inherited from AlmaRecord
#initialize, #method_missing, #post_initialize, #respond_to_missing?, #response
Constructor Details
This class inherits a constructor from Alma::AlmaRecord
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Alma::AlmaRecord
Instance Method Details
#overdue? ⇒ Boolean
9 10 11 |
# File 'lib/alma/loan.rb', line 9 def overdue? loan_status == "Overdue" end |
#renew ⇒ Object
13 14 15 |
# File 'lib/alma/loan.rb', line 13 def renew Alma::User.renew_loan({user_id: user_id, loan_id: loan_id}) end |
#renewable? ⇒ Boolean
5 6 7 |
# File 'lib/alma/loan.rb', line 5 def renewable? !!renewable end |