summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/reports/sbom/component.rb
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