summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/reports/sbom/source.rb
blob: 60bf30b65a5eea00fca30f07699068e5db3009ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

module Gitlab
  module Ci
    module Reports
      module Sbom
        class Source
          attr_reader :source_type, :data, :fingerprint

          def initialize(source = {})
            @source_type = source['type']
            @data = source['data']
            @fingerprint = source['fingerprint']
          end
        end
      end
    end
  end
end