Class: Presenter::RdSap::Report
- Inherits:
-
Object
- Object
- Presenter::RdSap::Report
- Defined in:
- lib/presenter/rd_sap/report.rb
Instance Method Summary collapse
-
#initialize(view_model, schema_type, additional_data) ⇒ Report
constructor
A new instance of Report.
- #to_hash ⇒ Object
- #to_hash_ni ⇒ Object
Constructor Details
#initialize(view_model, schema_type, additional_data) ⇒ Report
Returns a new instance of Report.
4 5 6 7 8 |
# File 'lib/presenter/rd_sap/report.rb', line 4 def initialize(view_model, schema_type, additional_data) @view_model = view_model @schema_type = schema_type @additional_data = additional_data end |
Instance Method Details
#to_hash ⇒ Object
10 11 12 13 |
# File 'lib/presenter/rd_sap/report.rb', line 10 def to_hash report_from_assessment_xml .merge(report_from_additional_data) end |
#to_hash_ni ⇒ Object
15 16 17 |
# File 'lib/presenter/rd_sap/report.rb', line 15 def to_hash_ni report_from_ni_assessment_xml end |