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