Sha256: 0d857baf5cf8da777f1a07417dab162c92aaa13cd31d3a4084ce8ab94e7ed0a9

Contents?: true

Size: 443 Bytes

Versions: 8

Compression:

Stored size: 443 Bytes

Contents

module Renalware
  module HD
    class ProfileDocumentPresenter < ::DumbDelegator

      def care_level
        @care_level ||= CareLevelPresenter.new(super)
      end

      class CareLevelPresenter < ::DumbDelegator
        def to_s
          care_level = __getobj__
          return "" unless care_level.level.present?
          "#{care_level.level.try(:text)} (#{::I18n.l(care_level.assessed_on)})"
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta11 app/presenters/renalware/hd/profile_document_presenter.rb
renalware-core-2.0.0.pre.beta10 app/presenters/renalware/hd/profile_document_presenter.rb
renalware-core-2.0.0.pre.beta9 app/presenters/renalware/hd/profile_document_presenter.rb
renalware-core-2.0.0.pre.beta8 app/presenters/renalware/hd/profile_document_presenter.rb
renalware-core-2.0.0.pre.beta7 app/presenters/renalware/hd/profile_document_presenter.rb
renalware-core-2.0.0.pre.beta6 app/presenters/renalware/hd/profile_document_presenter.rb
renalware-core-2.0.0.pre.beta5 app/presenters/renalware/hd/profile_document_presenter.rb
renalware-core-2.0.0.pre.beta4 app/presenters/renalware/hd/profile_document_presenter.rb