Class: Renalware::Clinics::Appointment
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Renalware::Clinics::Appointment
- Includes:
- Accountable
- Defined in:
- app/models/renalware/clinics/appointment.rb
Instance Method Summary collapse
Methods included from Accountable
#first_or_create_by!, #save_by, #save_by!, #update_by
Instance Method Details
#start_time ⇒ Object
22 23 24 |
# File 'app/models/renalware/clinics/appointment.rb', line 22 def start_time starts_at.strftime("%H:%M") end |
#starts_on ⇒ Object
18 19 20 |
# File 'app/models/renalware/clinics/appointment.rb', line 18 def starts_on starts_at.to_date end |