Class: Presenter::RdSap::Report

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

Instance Method Summary collapse

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_hashObject



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_niObject



15
16
17
# File 'lib/presenter/rd_sap/report.rb', line 15

def to_hash_ni
  report_from_ni_assessment_xml
end