Class: SBOM::CycloneDX::Record::LicenseChoice::LicenseExpression

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: LicenseExpression

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

Returns a new instance of LicenseExpression.

Parameters:

  • expression: (String)
  • acknowledgement: (String, nil)
  • bom_ref: (String, nil)


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

def initialize: (expression: String, ?acknowledgement: String?, ?bom_ref: String?) -> void

Instance Method Details

#acknowledgement ⇒ String?

Returns:

  • (String, nil)


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

def acknowledgement: () -> String?

#acknowledgement= ⇒ String?

Parameters:

  • (String, nil)

Returns:

  • (String, nil)


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

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

#acknowledgement? ⇒ Boolean

Returns:

  • (Boolean)


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

def acknowledgement?: () -> bool

#acknowledgement_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def acknowledgement_valid?: () -> bool

#bom_ref ⇒ String?

Returns:

  • (String, nil)


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

def bom_ref: () -> String?

#bom_ref= ⇒ String?

Parameters:

  • (String, nil)

Returns:

  • (String, nil)


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

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

#bom_ref? ⇒ Boolean

Returns:

  • (Boolean)


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

def bom_ref?: () -> bool

#bom_ref_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def bom_ref_valid?: () -> bool

#expression ⇒ String

Returns:

  • (String)


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

def expression: () -> String

#expression= ⇒ String

Parameters:

  • (String)

Returns:

  • (String)


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

def expression=: (String) -> String

#expression? ⇒ Boolean

Returns:

  • (Boolean)


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

def expression?: () -> bool

#expression_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def expression_valid?: () -> bool