Welcome to mirror list, hosted at ThFree Co, Russian Federation.

component.rb « sbom « reports « ci « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 86b9be274ccfe3bff26ada6aa9b838ad66af6d27 (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 Component
          attr_reader :component_type, :name, :version

          def initialize(component = {})
            @component_type = component['type']
            @name = component['name']
            @version = component['version']
          end
        end
      end
    end
  end
end