Sha256: 98726a0b4763f142a6999d7e48e54b42e2b63a676346d558f4619024c8bda972
Contents?: true
Size: 995 Bytes
Versions: 5
Compression:
Stored size: 995 Bytes
Contents
# frozen_string_literal: true module Spandx class License attr_reader :attributes def initialize(attributes = {}) @attributes = attributes end def id attributes[:licenseId] end def id=(value) attributes[:licenseId] = value end def name attributes[:name] end def name=(value) attributes[:name] = value end def reference attributes[:reference] end def reference=(value) attributes[:reference] = value end def deprecated_license_id? attributes[:isDeprecatedLicenseId] end def url attributes[:detailsUrl] end def url=(value) attributes[:detailsUrl] = value end def osi_approved? attributes[:isOsiApproved] end def see_also attributes[:seeAlso] end def reference_number attributes[:referenceNumber] end def reference_number=(value) attributes[:referenceNumber] = value end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
spandx-0.1.5 | lib/spandx/license.rb |
spandx-0.1.4 | lib/spandx/license.rb |
spandx-0.1.3 | lib/spandx/license.rb |
spandx-0.1.2 | lib/spandx/license.rb |
spandx-0.1.1 | lib/spandx/license.rb |