Sha256: 106a7b43f637ef50838410fc5ad05f2066ccde2b03e55fa964a75f9206f49695

Contents?: true

Size: 669 Bytes

Versions: 19

Compression:

Stored size: 669 Bytes

Contents

require_dependency "renalware/pathology"

module Renalware
  module Pathology
    # An abstract class representing the responsibility of building the
    # view model for Observation results.
    #
    class ResultsPresenter
      attr_reader :paginator
      attr_reader :view_model

      def present(results, paginator)
        @results = results
        @paginator = paginator
        @view_model = build_view_model
      end

      private

      def build_view_model
        build_header + build_body
      end

      def build_header
        raise NotImplementedError
      end

      def build_body
        raise NotImplementedError
      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/results_presenter.rb
renalware-core-2.0.0.pre.rc10 app/presenters/renalware/pathology/results_presenter.rb
renalware-core-2.0.0.pre.rc9 app/presenters/renalware/pathology/results_presenter.rb
renalware-core-2.0.0.pre.rc8 app/presenters/renalware/pathology/results_presenter.rb
renalware-core-2.0.0.pre.rc7 app/presenters/renalware/pathology/results_presenter.rb
renalware-core-2.0.0.pre.rc6 app/presenters/renalware/pathology/results_presenter.rb
renalware-core-2.0.0.pre.rc5 app/presenters/renalware/pathology/results_presenter.rb
renalware-core-2.0.0.pre.rc4 app/presenters/renalware/pathology/results_presenter.rb
renalware-core-2.0.0.pre.rc3 app/presenters/renalware/pathology/results_presenter.rb
renalware-core-2.0.0.pre.rc1 app/presenters/renalware/pathology/results_presenter.rb
renalware-core-2.0.0.pre.beta12 app/presenters/renalware/pathology/results_presenter.rb
renalware-core-2.0.0.pre.beta11 app/presenters/renalware/pathology/results_presenter.rb
renalware-core-2.0.0.pre.beta10 app/presenters/renalware/pathology/results_presenter.rb
renalware-core-2.0.0.pre.beta9 app/presenters/renalware/pathology/results_presenter.rb
renalware-core-2.0.0.pre.beta8 app/presenters/renalware/pathology/results_presenter.rb
renalware-core-2.0.0.pre.beta7 app/presenters/renalware/pathology/results_presenter.rb
renalware-core-2.0.0.pre.beta6 app/presenters/renalware/pathology/results_presenter.rb
renalware-core-2.0.0.pre.beta5 app/presenters/renalware/pathology/results_presenter.rb
renalware-core-2.0.0.pre.beta4 app/presenters/renalware/pathology/results_presenter.rb