Sha256: 32248469dd9fe60061946e5bd2f2ee581482b2b23b4f09510959607d39d49870

Contents?: true

Size: 491 Bytes

Versions: 19

Compression:

Stored size: 491 Bytes

Contents

module Renalware
  module Accesses
    class AssessmentPresenter < DumbDelegator
      def performed_on
        ::I18n.l(super)
      end

      def procedure_on
        ::I18n.l(super)
      end

      def side
        super.try(:text)
      end

      def outcome
        document.results.outcome.try(:text)
      end

      def next_surveillance
        document.admin.next_surveillance.try(:text)
      end

      def decision
        document.admin.decision
      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/accesses/assessment_presenter.rb
renalware-core-2.0.0.pre.rc10 app/presenters/renalware/accesses/assessment_presenter.rb
renalware-core-2.0.0.pre.rc9 app/presenters/renalware/accesses/assessment_presenter.rb
renalware-core-2.0.0.pre.rc8 app/presenters/renalware/accesses/assessment_presenter.rb
renalware-core-2.0.0.pre.rc7 app/presenters/renalware/accesses/assessment_presenter.rb
renalware-core-2.0.0.pre.rc6 app/presenters/renalware/accesses/assessment_presenter.rb
renalware-core-2.0.0.pre.rc5 app/presenters/renalware/accesses/assessment_presenter.rb
renalware-core-2.0.0.pre.rc4 app/presenters/renalware/accesses/assessment_presenter.rb
renalware-core-2.0.0.pre.rc3 app/presenters/renalware/accesses/assessment_presenter.rb
renalware-core-2.0.0.pre.rc1 app/presenters/renalware/accesses/assessment_presenter.rb
renalware-core-2.0.0.pre.beta12 app/presenters/renalware/accesses/assessment_presenter.rb
renalware-core-2.0.0.pre.beta11 app/presenters/renalware/accesses/assessment_presenter.rb
renalware-core-2.0.0.pre.beta10 app/presenters/renalware/accesses/assessment_presenter.rb
renalware-core-2.0.0.pre.beta9 app/presenters/renalware/accesses/assessment_presenter.rb
renalware-core-2.0.0.pre.beta8 app/presenters/renalware/accesses/assessment_presenter.rb
renalware-core-2.0.0.pre.beta7 app/presenters/renalware/accesses/assessment_presenter.rb
renalware-core-2.0.0.pre.beta6 app/presenters/renalware/accesses/assessment_presenter.rb
renalware-core-2.0.0.pre.beta5 app/presenters/renalware/accesses/assessment_presenter.rb
renalware-core-2.0.0.pre.beta4 app/presenters/renalware/accesses/assessment_presenter.rb