Sha256: c314931cef327e8cbf5b6d89d65477f08b7175519d457c141cdad82236acaf6b

Contents?: true

Size: 437 Bytes

Versions: 47

Compression:

Stored size: 437 Bytes

Contents

module Presenter
  module RdSap
    class RecommendationReport
      def initialize(view_model)
        @view_model = view_model
      end

      def to_hash
        complete_recommendations =
          @view_model.recommendations_for_report.each do |recommendations|
            recommendations[:assessment_id] = @view_model.assessment_id
          end

        { recommendations: complete_recommendations }
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
epb_view_models-1.0.6 lib/presenter/rd_sap/recommendation_report.rb
epb_view_models-1.0.5 lib/presenter/rd_sap/recommendation_report.rb
epb_view_models-1.0.4 lib/presenter/rd_sap/recommendation_report.rb
epb_view_models-1.0.3 lib/presenter/rd_sap/recommendation_report.rb
epb_view_models-1.0.2 lib/presenter/rd_sap/recommendation_report.rb
epb_view_models-1.0.1 lib/presenter/rd_sap/recommendation_report.rb
epb_view_models-1.0.0 lib/presenter/rd_sap/recommendation_report.rb