Class: SBOM::CycloneDX::Record::LicenseChoice::WrappedLicense

Inherits:
Base
  • Object
show all
Defined in:
lib/sbom/cyclone_dx/record/license_choice.rb,
sig/sbom/cyclone_dx/record/license_choice.rbs

Overview

Schema name: WrappedLicense

Constant Summary

Constants inherited from Base

Base::Record

Instance Attribute Summary

Attributes inherited from Base

#errors

Instance Method Summary collapse

Methods inherited from Base

#<=>, const, custom_validators, fields, #formatted_errors, json_create, json_name, prop, #valid!, #valid?, validate

Methods included from _Klass

#const, #const_names, #create, #create!, #custom_validators, #fields, #json_name, #prop, #prop_names, #validate

Methods included from _Instance

#as_json, #errors, #formatted_errors, #to_json, #valid?

Constructor Details

#initialize ⇒ WrappedLicense

Returns a new instance of WrappedLicense.

Parameters:



10
# File 'sig/sbom/cyclone_dx/record/license_choice.rbs', line 10

def initialize: (license: License) -> void

Instance Method Details

#license ⇒ License

Returns:



12
# File 'sig/sbom/cyclone_dx/record/license_choice.rbs', line 12

def license: () -> License

#license= ⇒ License

Parameters:

Returns:



13
# File 'sig/sbom/cyclone_dx/record/license_choice.rbs', line 13

def license=: (License) -> License

#license? ⇒ Boolean

Returns:

  • (Boolean)


14
# File 'sig/sbom/cyclone_dx/record/license_choice.rbs', line 14

def license?: () -> bool

#license_valid? ⇒ Boolean

Returns:

  • (Boolean)


15
# File 'sig/sbom/cyclone_dx/record/license_choice.rbs', line 15

def license_valid?: () -> bool