class Presenter::Sap::RecommendationReport

Public Class Methods

new(view_model) click to toggle source
# File lib/presenter/sap/recommendation_report.rb, line 4
def initialize(view_model)
  @view_model = view_model
end

Public Instance Methods

to_hash() click to toggle source
# File lib/presenter/sap/recommendation_report.rb, line 8
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