Class: Gitlab::Ci::Reports::Security::AggregatedReport
- Inherits:
-
Object
- Object
- Gitlab::Ci::Reports::Security::AggregatedReport
- Defined in:
- lib/gitlab/ci/reports/security/aggregated_report.rb
Instance Attribute Summary collapse
-
#findings ⇒ Object
readonly
Returns the value of attribute findings.
Instance Method Summary collapse
- #created_at ⇒ Object
-
#initialize(reports, findings) ⇒ AggregatedReport
constructor
A new instance of AggregatedReport.
Constructor Details
#initialize(reports, findings) ⇒ AggregatedReport
Returns a new instance of AggregatedReport.
12 13 14 15 |
# File 'lib/gitlab/ci/reports/security/aggregated_report.rb', line 12 def initialize(reports, findings) @reports = reports @findings = findings end |
Instance Attribute Details
#findings ⇒ Object (readonly)
Returns the value of attribute findings.
10 11 12 |
# File 'lib/gitlab/ci/reports/security/aggregated_report.rb', line 10 def findings @findings end |
Instance Method Details
#created_at ⇒ Object
17 18 19 |
# File 'lib/gitlab/ci/reports/security/aggregated_report.rb', line 17 def created_at @reports.map(&:created_at).compact.min end |