Class: Renalware::HD::PreferenceSet

Inherits:
ApplicationRecord show all
Includes:
Accountable, PatientScope
Defined in:
app/models/renalware/hd/preference_set.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Accountable

#first_or_create_by!, #save_by, #save_by!, #update_by

Class Method Details

.policy_classObject



26
27
28
# File 'app/models/renalware/hd/preference_set.rb', line 26

def self.policy_class
  BasePolicy
end

Instance Method Details

#preferred_scheduleObject



22
23
24
# File 'app/models/renalware/hd/preference_set.rb', line 22

def preferred_schedule
  other_schedule || schedule_definition&.to_s
end