Class: Renalware::Medications::MedicationRoute

Inherits:
ApplicationRecord
  • Object
show all
Defined in:
app/models/renalware/medications/medication_route.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.table_nameObject



8
9
10
# File 'app/models/renalware/medications/medication_route.rb', line 8

def self.table_name
  "medication_routes"
end

Instance Method Details

#other?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'app/models/renalware/medications/medication_route.rb', line 25

def other?
  code.casecmp("other").zero?
end