Sha256: f2ee63b14a04c023abea294d78e7bcf8906841219ead739d04db2db652fec4c0

Contents?: true

Size: 390 Bytes

Versions: 2

Compression:

Stored size: 390 Bytes

Contents

require_dependency "renalware/pathology"

module Renalware
  module Pathology
    class ObservationPresenter < SimpleDelegator
      delegate :name, 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

2 entries across 2 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta9 app/presenters/renalware/pathology/observation_presenter.rb
renalware-core-2.0.0.pre.beta8 app/presenters/renalware/pathology/observation_presenter.rb