Sha256: addefdcf038fa7742c07dfa2b74c2b3b616cf5c2141de2c728d005b011a2b444

Contents?: true

Size: 397 Bytes

Versions: 8

Compression:

Stored size: 397 Bytes

Contents

require_dependency "renalware/pathology"

module Renalware
  module Pathology
    class ObservationPresenter < SimpleDelegator
      delegate :name, :code, to: :description, prefix: true, allow_nil: true
      delegate :measurement_unit, to: :description
      delegate :name, to: :measurement_unit, prefix: true

      def html_class
        description.to_s.downcase
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc6 app/presenters/renalware/pathology/observation_presenter.rb
renalware-core-2.0.0.pre.rc5 app/presenters/renalware/pathology/observation_presenter.rb
renalware-core-2.0.0.pre.rc4 app/presenters/renalware/pathology/observation_presenter.rb
renalware-core-2.0.0.pre.rc3 app/presenters/renalware/pathology/observation_presenter.rb
renalware-core-2.0.0.pre.rc1 app/presenters/renalware/pathology/observation_presenter.rb
renalware-core-2.0.0.pre.beta12 app/presenters/renalware/pathology/observation_presenter.rb
renalware-core-2.0.0.pre.beta11 app/presenters/renalware/pathology/observation_presenter.rb
renalware-core-2.0.0.pre.beta10 app/presenters/renalware/pathology/observation_presenter.rb