Class: Renalware::Clinics::Appointment

Inherits:
ApplicationRecord show all
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_timeObject



22
23
24
# File 'app/models/renalware/clinics/appointment.rb', line 22

def start_time
  starts_at.strftime("%H:%M")
end

#starts_onObject



18
19
20
# File 'app/models/renalware/clinics/appointment.rb', line 18

def starts_on
  starts_at.to_date
end