Class: Presenter::Cepc::Report

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

Constant Summary collapse

TYPE_OF_ASSESSMENT =
"CEPC".freeze

Instance Method Summary collapse

Constructor Details

#initialize(view_model, additional_data) ⇒ Report

Returns a new instance of Report.



6
7
8
9
# File 'lib/presenter/cepc/report.rb', line 6

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

Instance Method Details

#to_hashObject



11
12
13
14
# File 'lib/presenter/cepc/report.rb', line 11

def to_hash
  report_from_assessment_xml
    .merge(report_from_additional_data)
end