Class: SBOM::CycloneDX::Record::Metadata::CustomPhase

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

Overview

Schema name: CustomPhase

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

Returns a new instance of CustomPhase.

Parameters:

  • name: (String)
  • description: (String, nil)


6
# File 'sig/sbom/cyclone_dx/record/metadata.rbs', line 6

def initialize: (name: String, ?description: String?) -> void

Instance Method Details

#description ⇒ String?

Returns:

  • (String, nil)


13
# File 'sig/sbom/cyclone_dx/record/metadata.rbs', line 13

def description: () -> String?

#description= ⇒ String?

Parameters:

  • (String, nil)

Returns:

  • (String, nil)


14
# File 'sig/sbom/cyclone_dx/record/metadata.rbs', line 14

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

#description? ⇒ Boolean

Returns:

  • (Boolean)


15
# File 'sig/sbom/cyclone_dx/record/metadata.rbs', line 15

def description?: () -> bool

#description_valid? ⇒ Boolean

Returns:

  • (Boolean)


16
# File 'sig/sbom/cyclone_dx/record/metadata.rbs', line 16

def description_valid?: () -> bool

#name ⇒ String

Returns:

  • (String)


8
# File 'sig/sbom/cyclone_dx/record/metadata.rbs', line 8

def name: () -> String

#name= ⇒ String

Parameters:

  • (String)

Returns:

  • (String)


9
# File 'sig/sbom/cyclone_dx/record/metadata.rbs', line 9

def name=: (String) -> String

#name? ⇒ Boolean

Returns:

  • (Boolean)


10
# File 'sig/sbom/cyclone_dx/record/metadata.rbs', line 10

def name?: () -> bool

#name_valid? ⇒ Boolean

Returns:

  • (Boolean)


11
# File 'sig/sbom/cyclone_dx/record/metadata.rbs', line 11

def name_valid?: () -> bool