Sha256: ea96db99f5b11801c0b7082a280ab22bb455b0fa17c562bf577658f19ea7ddfe

Contents?: true

Size: 520 Bytes

Versions: 19

Compression:

Stored size: 520 Bytes

Contents

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

19 entries across 19 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc11 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.0.pre.rc10 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.0.pre.rc9 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.0.pre.rc8 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.0.pre.rc7 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.0.pre.rc6 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.0.pre.rc5 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.0.pre.rc4 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.0.pre.rc3 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.0.pre.rc1 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.0.pre.beta12 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.0.pre.beta11 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.0.pre.beta10 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.0.pre.beta9 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.0.pre.beta8 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.0.pre.beta7 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.0.pre.beta6 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.0.pre.beta5 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb
renalware-core-2.0.0.pre.beta4 app/presenters/renalware/pathology/requests/patient_rule_presenter.rb