Class: Presenter::Dec::Report

Inherits:
Object
  • Object
show all
Defined in:
lib/presenter/dec/report.rb

Instance Method Summary collapse

Constructor Details

#initialize(view_model, additional_data) ⇒ Report

Returns a new instance of Report.



4
5
6
7
# File 'lib/presenter/dec/report.rb', line 4

def initialize(view_model, additional_data)
  @view_model = view_model
  @additional_data = additional_data
end

Instance Method Details

#to_hashObject



9
10
11
12
# File 'lib/presenter/dec/report.rb', line 9

def to_hash
  report_from_assessment_xml
    .merge(report_from_additional_data)
end