Class: Gitlab::Ci::Reports::Sbom::Source
- Inherits:
-
Object
- Object
- Gitlab::Ci::Reports::Sbom::Source
- Includes:
- Sbom::SourceHelper
- Defined in:
- lib/gitlab/ci/reports/sbom/source.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#source_type ⇒ Object
readonly
Returns the value of attribute source_type.
Instance Method Summary collapse
-
#initialize(type:, data:) ⇒ Source
constructor
A new instance of Source.
Methods included from Sbom::SourceHelper
#image_name, #image_tag, #input_file_path, #language, #operating_system_name, #operating_system_version, #packager, #source_file_path
Constructor Details
#initialize(type:, data:) ⇒ Source
Returns a new instance of Source.
12 13 14 15 |
# File 'lib/gitlab/ci/reports/sbom/source.rb', line 12 def initialize(type:, data:) @source_type = type @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
10 11 12 |
# File 'lib/gitlab/ci/reports/sbom/source.rb', line 10 def data @data end |
#source_type ⇒ Object (readonly)
Returns the value of attribute source_type.
10 11 12 |
# File 'lib/gitlab/ci/reports/sbom/source.rb', line 10 def source_type @source_type end |