Class: SBOM::CycloneDX::Record::Property

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

Overview

Schema name: Property

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

Returns a new instance of Property.

Parameters:

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


5
# File 'sig/sbom/cyclone_dx/record/property.rbs', line 5

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

Instance Method Details

#name ⇒ String

Returns:

  • (String)


7
# File 'sig/sbom/cyclone_dx/record/property.rbs', line 7

def name: () -> String

#name= ⇒ String

Parameters:

  • (String)

Returns:

  • (String)


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

def name=: (String) -> String

#name? ⇒ Boolean

Returns:

  • (Boolean)


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

def name?: () -> bool

#name_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def name_valid?: () -> bool

#value ⇒ String?

Returns:

  • (String, nil)


12
# File 'sig/sbom/cyclone_dx/record/property.rbs', line 12

def value: () -> String?

#value= ⇒ String?

Parameters:

  • (String, nil)

Returns:

  • (String, nil)


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

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

#value? ⇒ Boolean

Returns:

  • (Boolean)


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

def value?: () -> bool

#value_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def value_valid?: () -> bool