Class: SBOM::CycloneDX::Record::Standard

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

Overview

Schema name: Standard

Defined Under Namespace

Classes: Level, Requirement

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

Returns a new instance of Standard.

Parameters:

  • bom_ref: (String, nil)
  • name: (String, nil)
  • version: (String, nil)
  • description: (String, nil)
  • owner: (String, nil)
  • requirements: (Array[Requirement], nil)
  • levels: (Array[Level], nil)
  • external_references: (Array[ExternalReference], nil)
  • signature: (Signature::signatureChoice, nil)


83
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 83

def initialize: (?bom_ref: String?, ?name: String?, ?version: String?, ?description: String?, ?owner: String?, ?requirements: Array[Requirement]?, ?levels: Array[Level]?, ?external_references: Array[ExternalReference]?, ?signature: Signature::signatureChoice?) -> void

Instance Method Details

#bom_ref ⇒ String?

Returns:

  • (String, nil)


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

def bom_ref: () -> String?

#bom_ref= ⇒ String?

Parameters:

  • (String, nil)

Returns:

  • (String, nil)


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

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

#bom_ref? ⇒ Boolean

Returns:

  • (Boolean)


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

def bom_ref?: () -> bool

#bom_ref_valid? ⇒ Boolean

Returns:

  • (Boolean)


88
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 88

def bom_ref_valid?: () -> bool

#description ⇒ String?

Returns:

  • (String, nil)


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

def description: () -> String?

#description= ⇒ String?

Parameters:

  • (String, nil)

Returns:

  • (String, nil)


101
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 101

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

#description? ⇒ Boolean

Returns:

  • (Boolean)


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

def description?: () -> bool

#description_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def description_valid?: () -> bool

#external_references ⇒ Array[ExternalReference]?

Returns:



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

def external_references: () -> Array[ExternalReference]?

#external_references= ⇒ Array[ExternalReference]?

Parameters:

Returns:



121
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 121

def external_references=: (Array[ExternalReference]?) -> Array[ExternalReference]?

#external_references? ⇒ Boolean

Returns:

  • (Boolean)


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

def external_references?: () -> bool

#external_references_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def external_references_valid?: () -> bool

#levels ⇒ Array[Level]?

Returns:



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

def levels: () -> Array[Level]?

#levels= ⇒ Array[Level]?

Parameters:

Returns:



116
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 116

def levels=: (Array[Level]?) -> Array[Level]?

#levels? ⇒ Boolean

Returns:

  • (Boolean)


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

def levels?: () -> bool

#levels_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def levels_valid?: () -> bool

#name ⇒ String?

Returns:

  • (String, nil)


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

def name: () -> String?

#name= ⇒ String?

Parameters:

  • (String, nil)

Returns:

  • (String, nil)


91
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 91

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

#name? ⇒ Boolean

Returns:

  • (Boolean)


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

def name?: () -> bool

#name_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def name_valid?: () -> bool

#owner ⇒ String?

Returns:

  • (String, nil)


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

def owner: () -> String?

#owner= ⇒ String?

Parameters:

  • (String, nil)

Returns:

  • (String, nil)


106
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 106

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

#owner? ⇒ Boolean

Returns:

  • (Boolean)


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

def owner?: () -> bool

#owner_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def owner_valid?: () -> bool

#requirements ⇒ Array[Requirement]?

Returns:



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

def requirements: () -> Array[Requirement]?

#requirements= ⇒ Array[Requirement]?

Parameters:

Returns:



111
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 111

def requirements=: (Array[Requirement]?) -> Array[Requirement]?

#requirements? ⇒ Boolean

Returns:

  • (Boolean)


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

def requirements?: () -> bool

#requirements_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def requirements_valid?: () -> bool

#signature ⇒ Signature::signatureChoice?

Returns:

  • (Signature::signatureChoice, nil)


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

def signature: () -> Signature::signatureChoice?

#signature= ⇒ Signature::signatureChoice?

Parameters:

  • (Signature::signatureChoice, nil)

Returns:

  • (Signature::signatureChoice, nil)


126
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 126

def signature=: (Signature::signatureChoice?) -> Signature::signatureChoice?

#signature? ⇒ Boolean

Returns:

  • (Boolean)


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

def signature?: () -> bool

#signature_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def signature_valid?: () -> bool

#version ⇒ String?

Returns:

  • (String, nil)


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

def version: () -> String?

#version= ⇒ String?

Parameters:

  • (String, nil)

Returns:

  • (String, nil)


96
# File 'sig/sbom/cyclone_dx/record/standard.rbs', line 96

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

#version? ⇒ Boolean

Returns:

  • (Boolean)


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

def version?: () -> bool

#version_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def version_valid?: () -> bool