Class: Gitlab::Ci::Reports::Sbom::Source

Inherits:
Object
  • Object
show all
Includes:
Sbom::SourceHelper
Defined in:
lib/gitlab/ci/reports/sbom/source.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dataObject (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_typeObject (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