Class: Presenter::Cepc::Report
- Inherits:
-
Object
- Object
- Presenter::Cepc::Report
- Defined in:
- lib/presenter/cepc/report.rb
Constant Summary collapse
- TYPE_OF_ASSESSMENT =
"CEPC".freeze
Instance Method Summary collapse
-
#initialize(view_model, additional_data) ⇒ Report
constructor
A new instance of Report.
- #to_hash ⇒ Object
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_hash ⇒ Object
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 |