Sha256: 9cccf79cba8aeede7cc2d138490b44d2843da281c6694cae84c1c5fe31e7e53b

Contents?: true

Size: 384 Bytes

Versions: 4

Compression:

Stored size: 384 Bytes

Contents

# frozen_string_literal: true

module Spandx
  module Parsers
    class Csproj
      class PackageReference
        attr_reader :name, :version

        def initialize(name:, version:)
          @name = name
          @version = version
        end

        def to_h
          {
            name: name,
            version: version
          }
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spandx-0.5.0 lib/spandx/parsers/csproj/package_reference.rb
spandx-0.4.1 lib/spandx/parsers/csproj/package_reference.rb
spandx-0.4.0 lib/spandx/parsers/csproj/package_reference.rb
spandx-0.3.0 lib/spandx/parsers/csproj/package_reference.rb