Sha256: d4b76b819584bf5aea609524f876cbc9911c9e28c6fa808f17c5987e51146f7a

Contents?: true

Size: 432 Bytes

Versions: 70

Compression:

Stored size: 432 Bytes

Contents

# frozen_string_literal: true

require_dependency "renalware/clinics"
require_dependency "collection_presenter"

module Renalware
  module Clinics
    class ClinicVisitPresenter < DumbDelegator
      def sanitized_notes
        ::Rails::Html::WhiteListSanitizer.new.sanitize(notes, tags: %w(p br ol li ul span div))
      end

      def height_in_cm
        return if height.blank?

        height * 100
      end
    end
  end
end

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
renalware-core-2.0.127 app/presenters/renalware/clinics/clinic_visit_presenter.rb
renalware-core-2.0.126 app/presenters/renalware/clinics/clinic_visit_presenter.rb
renalware-core-2.0.125 app/presenters/renalware/clinics/clinic_visit_presenter.rb
renalware-core-2.0.124 app/presenters/renalware/clinics/clinic_visit_presenter.rb
renalware-core-2.0.123 app/presenters/renalware/clinics/clinic_visit_presenter.rb
renalware-core-2.0.121 app/presenters/renalware/clinics/clinic_visit_presenter.rb
renalware-core-2.0.120 app/presenters/renalware/clinics/clinic_visit_presenter.rb
renalware-core-2.0.119 app/presenters/renalware/clinics/clinic_visit_presenter.rb
renalware-core-2.0.118 app/presenters/renalware/clinics/clinic_visit_presenter.rb
renalware-core-2.0.117 app/presenters/renalware/clinics/clinic_visit_presenter.rb
renalware-core-2.0.116 app/presenters/renalware/clinics/clinic_visit_presenter.rb
renalware-core-2.0.115 app/presenters/renalware/clinics/clinic_visit_presenter.rb
renalware-core-2.0.113 app/presenters/renalware/clinics/clinic_visit_presenter.rb
renalware-core-2.0.112 app/presenters/renalware/clinics/clinic_visit_presenter.rb
renalware-core-2.0.111 app/presenters/renalware/clinics/clinic_visit_presenter.rb
renalware-core-2.0.110 app/presenters/renalware/clinics/clinic_visit_presenter.rb
renalware-core-2.0.109 app/presenters/renalware/clinics/clinic_visit_presenter.rb
renalware-core-2.0.108 app/presenters/renalware/clinics/clinic_visit_presenter.rb
renalware-core-2.0.106 app/presenters/renalware/clinics/clinic_visit_presenter.rb
renalware-core-2.0.105 app/presenters/renalware/clinics/clinic_visit_presenter.rb