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