debian-mirror-gitlab/lib/gitlab/ci/reports/sbom/component.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
399 B
Ruby
Raw Normal View History

2022-08-27 11:52:29 +05:30
# 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