Sha256: 0d09a8fa079d929f286c48ef22801bd37e50a30d88c03ad29c02b019e0f69e65

Contents?: true

Size: 551 Bytes

Versions: 158

Compression:

Stored size: 551 Bytes

Contents

# frozen_string_literal: true

require_dependency "renalware/pathology"

module Renalware
  module Pathology
    module Requests
      class PatientRulePresenter < SimpleDelegator
        def self.present(patient_rules)
          patient_rules.map { |patient_rule| new patient_rule }
        end

        def to_s
          test_description.to_s + sample_description.to_s
        end

        private

        def sample_description
          Requests::SampleDescription.new(sample_type, sample_number_bottles)
        end
      end
    end
  end
end

Version data entries

158 entries across 158 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.1.0 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.167 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.166 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.165 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.164 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.163 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.162 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.161 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.160 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.159 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.158 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.157 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.156 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.155 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.153 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.152 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.151 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.149 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.148 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb