module HasVaccineMethods
Public Instance Methods
Source
# File app/models/concerns/has_vaccine_methods.rb, line 14 def vaccine_method_injection? = vaccine_methods.include?("injection") def vaccine_method_nasal? = vaccine_methods.include?("nasal") def vaccine_method_nasal_only? = vaccine_methods == %w[nasal] def vaccine_method_injection_and_nasal? vaccine_method_injection? && vaccine_method_nasal?
Source
# File app/models/concerns/has_vaccine_methods.rb, line 20 def vaccine_method_injection_and_nasal? vaccine_method_injection? && vaccine_method_nasal? end
Source
# File app/models/concerns/has_vaccine_methods.rb, line 16 def vaccine_method_nasal? = vaccine_methods.include?("nasal") def vaccine_method_nasal_only? = vaccine_methods == %w[nasal] def vaccine_method_injection_and_nasal? vaccine_method_injection? && vaccine_method_nasal? end
Source
# File app/models/concerns/has_vaccine_methods.rb, line 18 def vaccine_method_nasal_only? = vaccine_methods == %w[nasal] def vaccine_method_injection_and_nasal? vaccine_method_injection? && vaccine_method_nasal? end end