Class: SBOM::CycloneDX::Record::License

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

Overview

Schema name: License

Defined Under Namespace

Classes: Licensing

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 ⇒ License

Returns a new instance of License.

Parameters:

  • bom_ref: (String, nil)
  • id: (String, nil)
  • name: (String, nil)
  • acknowledgement: (String, nil)
  • text: (Attachment, nil)
  • url: (uri, nil)
  • licensing: (Licensing, nil)
  • properties: (Array[Property], nil)


90
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 90

def initialize: (?bom_ref: String?, ?id: String?, ?name: String?, ?acknowledgement: String?, ?text: Attachment?, ?url: uri?, ?licensing: Licensing?, ?properties: Array[Property]?) -> void

Instance Method Details

#acknowledgement ⇒ String?

Returns:

  • (String, nil)


107
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 107

def acknowledgement: () -> String?

#acknowledgement= ⇒ String?

Parameters:

  • (String, nil)

Returns:

  • (String, nil)


108
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 108

def acknowledgement=: (String?) -> String?

#acknowledgement? ⇒ Boolean

Returns:

  • (Boolean)


109
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 109

def acknowledgement?: () -> bool

#acknowledgement_valid? ⇒ Boolean

Returns:

  • (Boolean)


110
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 110

def acknowledgement_valid?: () -> bool

#bom_ref ⇒ String?

Returns:

  • (String, nil)


92
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 92

def bom_ref: () -> String?

#bom_ref= ⇒ String?

Parameters:

  • (String, nil)

Returns:

  • (String, nil)


93
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 93

def bom_ref=: (String?) -> String?

#bom_ref? ⇒ Boolean

Returns:

  • (Boolean)


94
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 94

def bom_ref?: () -> bool

#bom_ref_valid? ⇒ Boolean

Returns:

  • (Boolean)


95
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 95

def bom_ref_valid?: () -> bool

#id ⇒ String?

Returns:

  • (String, nil)


97
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 97

def id: () -> String?

#id= ⇒ String?

Parameters:

  • (String, nil)

Returns:

  • (String, nil)


98
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 98

def id=: (String?) -> String?

#id? ⇒ Boolean

Returns:

  • (Boolean)


99
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 99

def id?: () -> bool

#id_valid? ⇒ Boolean

Returns:

  • (Boolean)


100
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 100

def id_valid?: () -> bool

#licensing ⇒ Licensing?

Returns:



122
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 122

def licensing: () -> Licensing?

#licensing= ⇒ Licensing?

Parameters:

Returns:



123
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 123

def licensing=: (Licensing?) -> Licensing?

#licensing? ⇒ Boolean

Returns:

  • (Boolean)


124
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 124

def licensing?: () -> bool

#licensing_valid? ⇒ Boolean

Returns:

  • (Boolean)


125
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 125

def licensing_valid?: () -> bool

#name ⇒ String?

Returns:

  • (String, nil)


102
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 102

def name: () -> String?

#name= ⇒ String?

Parameters:

  • (String, nil)

Returns:

  • (String, nil)


103
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 103

def name=: (String?) -> String?

#name? ⇒ Boolean

Returns:

  • (Boolean)


104
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 104

def name?: () -> bool

#name_valid? ⇒ Boolean

Returns:

  • (Boolean)


105
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 105

def name_valid?: () -> bool

#properties ⇒ Array[Property]?

Returns:



127
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 127

def properties: () -> Array[Property]?

#properties= ⇒ Array[Property]?

Parameters:

Returns:



128
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 128

def properties=: (Array[Property]?) -> Array[Property]?

#properties? ⇒ Boolean

Returns:

  • (Boolean)


129
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 129

def properties?: () -> bool

#properties_valid? ⇒ Boolean

Returns:

  • (Boolean)


130
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 130

def properties_valid?: () -> bool

#text ⇒ Attachment?

Returns:



112
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 112

def text: () -> Attachment?

#text= ⇒ Attachment?

Parameters:

Returns:



113
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 113

def text=: (Attachment?) -> Attachment?

#text? ⇒ Boolean

Returns:

  • (Boolean)


114
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 114

def text?: () -> bool

#text_valid? ⇒ Boolean

Returns:

  • (Boolean)


115
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 115

def text_valid?: () -> bool

#url ⇒ uri?

Returns:

  • (uri, nil)


117
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 117

def url: () -> uri?

#url= ⇒ uri?

Parameters:

  • (uri, nil)

Returns:

  • (uri, nil)


118
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 118

def url=: (uri?) -> uri?

#url? ⇒ Boolean

Returns:

  • (Boolean)


119
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 119

def url?: () -> bool

#url_valid? ⇒ Boolean

Returns:

  • (Boolean)


120
# File 'sig/sbom/cyclone_dx/record/license.rbs', line 120

def url_valid?: () -> bool