Class: SBOM::CycloneDX::Record::ComponentData

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

Overview

Schema name: ComponentData

Defined Under Namespace

Classes: Content

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

Returns a new instance of ComponentData.

Parameters:

  • bom_ref: (String, nil)
  • type: (String)
  • name: (String, nil)
  • contents: (Content, nil)
  • classification: (String, nil)
  • sensitive_data: (Array[String], nil)
  • graphics: (GraphicsCollection, nil)
  • description: (String, nil)
  • governance: (DataGovernance, nil)


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

def initialize: (?bom_ref: String?, type: String, ?name: String?, ?contents: Content?, ?classification: String?, ?sensitive_data: Array[String]?, ?graphics: GraphicsCollection?, ?description: String?, ?governance: DataGovernance?) -> void

Instance Method Details

#bom_ref ⇒ String?

Returns:

  • (String, nil)


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

def bom_ref: () -> String?

#bom_ref= ⇒ String?

Parameters:

  • (String, nil)

Returns:

  • (String, nil)


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

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

#bom_ref? ⇒ Boolean

Returns:

  • (Boolean)


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

def bom_ref?: () -> bool

#bom_ref_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def bom_ref_valid?: () -> bool

#classification ⇒ String?

Returns:

  • (String, nil)


46
# File 'sig/sbom/cyclone_dx/record/component_data.rbs', line 46

def classification: () -> String?

#classification= ⇒ String?

Parameters:

  • (String, nil)

Returns:

  • (String, nil)


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

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

#classification? ⇒ Boolean

Returns:

  • (Boolean)


48
# File 'sig/sbom/cyclone_dx/record/component_data.rbs', line 48

def classification?: () -> bool

#classification_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def classification_valid?: () -> bool

#contents ⇒ Content?

Returns:



41
# File 'sig/sbom/cyclone_dx/record/component_data.rbs', line 41

def contents: () -> Content?

#contents= ⇒ Content?

Parameters:

Returns:



42
# File 'sig/sbom/cyclone_dx/record/component_data.rbs', line 42

def contents=: (Content?) -> Content?

#contents? ⇒ Boolean

Returns:

  • (Boolean)


43
# File 'sig/sbom/cyclone_dx/record/component_data.rbs', line 43

def contents?: () -> bool

#contents_valid? ⇒ Boolean

Returns:

  • (Boolean)


44
# File 'sig/sbom/cyclone_dx/record/component_data.rbs', line 44

def contents_valid?: () -> bool

#description ⇒ String?

Returns:

  • (String, nil)


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

def description: () -> String?

#description= ⇒ String?

Parameters:

  • (String, nil)

Returns:

  • (String, nil)


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

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

#description? ⇒ Boolean

Returns:

  • (Boolean)


63
# File 'sig/sbom/cyclone_dx/record/component_data.rbs', line 63

def description?: () -> bool

#description_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def description_valid?: () -> bool

#governance ⇒ DataGovernance?

Returns:



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

def governance: () -> DataGovernance?

#governance= ⇒ DataGovernance?

Parameters:

Returns:



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

def governance=: (DataGovernance?) -> DataGovernance?

#governance? ⇒ Boolean

Returns:

  • (Boolean)


68
# File 'sig/sbom/cyclone_dx/record/component_data.rbs', line 68

def governance?: () -> bool

#governance_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def governance_valid?: () -> bool

#graphics ⇒ GraphicsCollection?

Returns:



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

def graphics: () -> GraphicsCollection?

#graphics= ⇒ GraphicsCollection?

Parameters:

Returns:



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

def graphics=: (GraphicsCollection?) -> GraphicsCollection?

#graphics? ⇒ Boolean

Returns:

  • (Boolean)


58
# File 'sig/sbom/cyclone_dx/record/component_data.rbs', line 58

def graphics?: () -> bool

#graphics_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def graphics_valid?: () -> bool

#name ⇒ String?

Returns:

  • (String, nil)


36
# File 'sig/sbom/cyclone_dx/record/component_data.rbs', line 36

def name: () -> String?

#name= ⇒ String?

Parameters:

  • (String, nil)

Returns:

  • (String, nil)


37
# File 'sig/sbom/cyclone_dx/record/component_data.rbs', line 37

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

#name? ⇒ Boolean

Returns:

  • (Boolean)


38
# File 'sig/sbom/cyclone_dx/record/component_data.rbs', line 38

def name?: () -> bool

#name_valid? ⇒ Boolean

Returns:

  • (Boolean)


39
# File 'sig/sbom/cyclone_dx/record/component_data.rbs', line 39

def name_valid?: () -> bool

#sensitive_data ⇒ Array[String]?

Returns:

  • (Array[String], nil)


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

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

#sensitive_data= ⇒ Array[String]?

Parameters:

  • (Array[String], nil)

Returns:

  • (Array[String], nil)


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

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

#sensitive_data? ⇒ Boolean

Returns:

  • (Boolean)


53
# File 'sig/sbom/cyclone_dx/record/component_data.rbs', line 53

def sensitive_data?: () -> bool

#sensitive_data_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def sensitive_data_valid?: () -> bool

#type ⇒ String

Returns:

  • (String)


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

def type: () -> String

#type= ⇒ String

Parameters:

  • (String)

Returns:

  • (String)


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

def type=: (String) -> String

#type? ⇒ Boolean

Returns:

  • (Boolean)


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

def type?: () -> bool

#type_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def type_valid?: () -> bool