Sha256: cffb052a597bcf6251c21960a405cf69486d4efaeba511dd8f3b4f1b86f7dfc1
Contents?: true
Size: 644 Bytes
Versions: 1
Compression:
Stored size: 644 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 name attributes[:name] end def reference attributes[:reference] end def deprecated_license_id? attributes[:isDeprecatedLicenseId] end def url attributes[:detailsUrl] end def osi_approved? attributes[:isOsiApproved] end def see_also attributes[:seeAlso] end def reference_number attributes[:referenceNumber] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spandx-0.1.0 | lib/spandx/license.rb |