Class: Gitlab::Ci::Reports::Sbom::Metadata

Inherits:
Object
  • Object
show all
Defined in:
lib/gitlab/ci/reports/sbom/metadata.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = authors
  @properties = properties
end

Instance Attribute Details

#authorsObject

Returns the value of attribute authors.



8
9
10
# File 'lib/gitlab/ci/reports/sbom/metadata.rb', line 8

def authors
  @authors
end

#propertiesObject

Returns the value of attribute properties.



8
9
10
# File 'lib/gitlab/ci/reports/sbom/metadata.rb', line 8

def properties
  @properties
end

#timestampObject

Returns the value of attribute timestamp.



8
9
10
# File 'lib/gitlab/ci/reports/sbom/metadata.rb', line 8

def timestamp
  @timestamp
end

#toolsObject

Returns the value of attribute tools.



8
9
10
# File 'lib/gitlab/ci/reports/sbom/metadata.rb', line 8

def tools
  @tools
end