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

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

Overview

Schema name: Licensing

Defined Under Namespace

Classes: Licensee, Licensor, Purchaser

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

Returns a new instance of Licensing.

Parameters:

  • alt_ids: (Array[String], nil)
  • licensor: (Licensor, nil)
  • licensee: (Licensee, nil)
  • purchaser: (Purchaser, nil)
  • purchase_order: (String, nil)
  • license_types: (Array[String], nil)
  • last_renewal: (dateTime, nil)
  • expiration: (dateTime, nil)


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

def initialize: (?alt_ids: Array[String]?, ?licensor: Licensor?, ?licensee: Licensee?, ?purchaser: Purchaser?, ?purchase_order: String?, ?license_types: Array[String]?, ?last_renewal: dateTime?, ?expiration: dateTime?) -> void

Instance Method Details

#alt_ids ⇒ Array[String]?

Returns:

  • (Array[String], nil)


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

def alt_ids: () -> Array[String]?

#alt_ids= ⇒ Array[String]?

Parameters:

  • (Array[String], nil)

Returns:

  • (Array[String], nil)


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

def alt_ids=: (Array[String]?) -> Array[String]?

#alt_ids? ⇒ Boolean

Returns:

  • (Boolean)


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

def alt_ids?: () -> bool

#alt_ids_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def alt_ids_valid?: () -> bool

#expiration ⇒ dateTime?

Returns:

  • (dateTime, nil)


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

def expiration: () -> dateTime?

#expiration= ⇒ dateTime?

Parameters:

  • (dateTime, nil)

Returns:

  • (dateTime, nil)


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

def expiration=: (dateTime?) -> dateTime?

#expiration? ⇒ Boolean

Returns:

  • (Boolean)


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

def expiration?: () -> bool

#expiration_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def expiration_valid?: () -> bool

#last_renewal ⇒ dateTime?

Returns:

  • (dateTime, nil)


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

def last_renewal: () -> dateTime?

#last_renewal= ⇒ dateTime?

Parameters:

  • (dateTime, nil)

Returns:

  • (dateTime, nil)


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

def last_renewal=: (dateTime?) -> dateTime?

#last_renewal? ⇒ Boolean

Returns:

  • (Boolean)


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

def last_renewal?: () -> bool

#last_renewal_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def last_renewal_valid?: () -> bool

#license_types ⇒ Array[String]?

Returns:

  • (Array[String], nil)


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

def license_types: () -> Array[String]?

#license_types= ⇒ Array[String]?

Parameters:

  • (Array[String], nil)

Returns:

  • (Array[String], nil)


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

def license_types=: (Array[String]?) -> Array[String]?

#license_types? ⇒ Boolean

Returns:

  • (Boolean)


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

def license_types?: () -> bool

#license_types_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def license_types_valid?: () -> bool

#licensee ⇒ Licensee?

Returns:



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

def licensee: () -> Licensee?

#licensee= ⇒ Licensee?

Parameters:

Returns:



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

def licensee=: (Licensee?) -> Licensee?

#licensee? ⇒ Boolean

Returns:

  • (Boolean)


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

def licensee?: () -> bool

#licensee_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def licensee_valid?: () -> bool

#licensor ⇒ Licensor?

Returns:



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

def licensor: () -> Licensor?

#licensor= ⇒ Licensor?

Parameters:

Returns:



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

def licensor=: (Licensor?) -> Licensor?

#licensor? ⇒ Boolean

Returns:

  • (Boolean)


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

def licensor?: () -> bool

#licensor_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def licensor_valid?: () -> bool

#purchase_order ⇒ String?

Returns:

  • (String, nil)


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

def purchase_order: () -> String?

#purchase_order= ⇒ String?

Parameters:

  • (String, nil)

Returns:

  • (String, nil)


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

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

#purchase_order? ⇒ Boolean

Returns:

  • (Boolean)


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

def purchase_order?: () -> bool

#purchase_order_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def purchase_order_valid?: () -> bool

#purchaser ⇒ Purchaser?

Returns:



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

def purchaser: () -> Purchaser?

#purchaser= ⇒ Purchaser?

Parameters:

Returns:



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

def purchaser=: (Purchaser?) -> Purchaser?

#purchaser? ⇒ Boolean

Returns:

  • (Boolean)


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

def purchaser?: () -> bool

#purchaser_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def purchaser_valid?: () -> bool