Class: Gitlab::Ci::Reports::Sbom::Reports
- Inherits:
-
Object
- Object
- Gitlab::Ci::Reports::Sbom::Reports
- Defined in:
- lib/gitlab/ci/reports/sbom/reports.rb
Instance Attribute Summary collapse
-
#reports ⇒ Object
readonly
Returns the value of attribute reports.
Instance Method Summary collapse
- #add_report(report) ⇒ Object
-
#initialize ⇒ Reports
constructor
A new instance of Reports.
Constructor Details
#initialize ⇒ Reports
Returns a new instance of Reports.
10 11 12 |
# File 'lib/gitlab/ci/reports/sbom/reports.rb', line 10 def initialize @reports = [] end |
Instance Attribute Details
#reports ⇒ Object (readonly)
Returns the value of attribute reports.
8 9 10 |
# File 'lib/gitlab/ci/reports/sbom/reports.rb', line 8 def reports @reports end |
Instance Method Details
#add_report(report) ⇒ Object
14 15 16 |
# File 'lib/gitlab/ci/reports/sbom/reports.rb', line 14 def add_report(report) @reports << report end |