Sha256: 6a2b3e97af4ea4e600eaae7040fa581d86895aa6cd57245f2c7a6acc3dfabbcf

Contents?: true

Size: 622 Bytes

Versions: 140

Compression:

Stored size: 622 Bytes

Contents

# frozen_string_literal: true

module Renalware
  # Presenter formatting a collection of patients for use behind any MDM Patients listing.
  class MDMPatientsPresenter
    include PresenterHelper
    attr_reader :patients, :view_proc, :page_title, :q
    def initialize(patients:,
                   view_proc:,
                   page_title:,
                   q:,
                   patient_presenter_class: nil)
      patient_presenter_class ||= MDMPatientPresenter
      @view_proc = view_proc
      @patients = present(patients, patient_presenter_class)
      @page_title = page_title
      @q = q
    end
  end
end

Version data entries

140 entries across 140 versions & 1 rubygems

Version Path
renalware-core-2.0.149 app/presenters/renalware/mdm_patients_presenter.rb
renalware-core-2.0.148 app/presenters/renalware/mdm_patients_presenter.rb
renalware-core-2.0.147 app/presenters/renalware/mdm_patients_presenter.rb
renalware-core-2.0.146 app/presenters/renalware/mdm_patients_presenter.rb
renalware-core-2.0.145 app/presenters/renalware/mdm_patients_presenter.rb
renalware-core-2.0.144 app/presenters/renalware/mdm_patients_presenter.rb
renalware-core-2.0.143 app/presenters/renalware/mdm_patients_presenter.rb
renalware-core-2.0.142 app/presenters/renalware/mdm_patients_presenter.rb
renalware-core-2.0.141 app/presenters/renalware/mdm_patients_presenter.rb
renalware-core-2.0.140 app/presenters/renalware/mdm_patients_presenter.rb
renalware-core-2.0.139 app/presenters/renalware/mdm_patients_presenter.rb
renalware-core-2.0.138 app/presenters/renalware/mdm_patients_presenter.rb
renalware-core-2.0.137 app/presenters/renalware/mdm_patients_presenter.rb
renalware-core-2.0.136 app/presenters/renalware/mdm_patients_presenter.rb
renalware-core-2.0.135 app/presenters/renalware/mdm_patients_presenter.rb
renalware-core-2.0.134 app/presenters/renalware/mdm_patients_presenter.rb
renalware-core-2.0.133 app/presenters/renalware/mdm_patients_presenter.rb
renalware-core-2.0.132 app/presenters/renalware/mdm_patients_presenter.rb
renalware-core-2.0.131 app/presenters/renalware/mdm_patients_presenter.rb
renalware-core-2.0.130 app/presenters/renalware/mdm_patients_presenter.rb