Class: Security::MergeReportsService

Inherits:
Object
  • Object
show all
Defined in:
app/services/security/merge_reports_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*source_reports) ⇒ MergeReportsService

Returns a new instance of MergeReportsService.



7
8
9
# File 'app/services/security/merge_reports_service.rb', line 7

def initialize(*source_reports)
  @source_reports = source_reports
end

Instance Attribute Details

#source_reportsObject (readonly)

Returns the value of attribute source_reports.



5
6
7
# File 'app/services/security/merge_reports_service.rb', line 5

def source_reports
  @source_reports
end

Instance Method Details

#executeObject



11
12
13
14
15
# File 'app/services/security/merge_reports_service.rb', line 11

def execute
  copy_resources_to_target_report
  copy_findings_to_target
  target_report
end