Class: Gitlab::Ci::Reports::Security::Reports
- Inherits:
-
Object
- Object
- Gitlab::Ci::Reports::Security::Reports
- Defined in:
- lib/gitlab/ci/reports/security/reports.rb
Instance Attribute Summary collapse
-
#pipeline ⇒ Object
readonly
Returns the value of attribute pipeline.
-
#reports ⇒ Object
readonly
Returns the value of attribute reports.
Instance Method Summary collapse
- #findings ⇒ Object
- #get_report(report_type, report_artifact) ⇒ Object
-
#initialize(pipeline) ⇒ Reports
constructor
A new instance of Reports.
Constructor Details
#initialize(pipeline) ⇒ Reports
Returns a new instance of Reports.
12 13 14 15 |
# File 'lib/gitlab/ci/reports/security/reports.rb', line 12 def initialize(pipeline) @reports = {} @pipeline = pipeline end |
Instance Attribute Details
#pipeline ⇒ Object (readonly)
Returns the value of attribute pipeline.
8 9 10 |
# File 'lib/gitlab/ci/reports/security/reports.rb', line 8 def pipeline @pipeline end |
#reports ⇒ Object (readonly)
Returns the value of attribute reports.
8 9 10 |
# File 'lib/gitlab/ci/reports/security/reports.rb', line 8 def reports @reports end |
Instance Method Details
#findings ⇒ Object
21 22 23 |
# File 'lib/gitlab/ci/reports/security/reports.rb', line 21 def findings reports.values.flat_map(&:findings) end |