Sha256: c975a2ef31d2f8258619194d118447ee3357ff7bc8536911c631cda143c19239
Contents?: true
Size: 426 Bytes
Versions: 4
Compression:
Stored size: 426 Bytes
Contents
# frozen_string_literal: true module Spandx module Core class Dependency attr_reader :name, :version, :licenses def initialize(name:, version:, licenses: []) @name = name @version = version @licenses = licenses end def to_h { name: name, version: version, licenses: licenses.compact.map(&:id) } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
spandx-0.9.0 | lib/spandx/core/dependency.rb |
spandx-0.8.0 | lib/spandx/core/dependency.rb |
spandx-0.7.0 | lib/spandx/core/dependency.rb |
spandx-0.6.0 | lib/spandx/core/dependency.rb |