Class: SBOM::CycloneDX::Record::ExternalReference

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

Overview

Schema name: ExternalReference

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

Returns a new instance of ExternalReference.

Parameters:

  • url: (uri, String)
  • comment: (String, nil)
  • type: (String)
  • hashes: (Array[HashData], nil)


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

def initialize: (url: uri | String, ?comment: String?, type: String, ?hashes: Array[HashData]?) -> void

Instance Method Details

#comment ⇒ String?

Returns:

  • (String, nil)


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

def comment: () -> String?

#comment= ⇒ String?

Parameters:

  • (String, nil)

Returns:

  • (String, nil)


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

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

#comment? ⇒ Boolean

Returns:

  • (Boolean)


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

def comment?: () -> bool

#comment_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def comment_valid?: () -> bool

#hashes ⇒ Array[HashData]?

Returns:



22
# File 'sig/sbom/cyclone_dx/record/external_reference.rbs', line 22

def hashes: () -> Array[HashData]?

#hashes= ⇒ Array[HashData]?

Parameters:

Returns:



23
# File 'sig/sbom/cyclone_dx/record/external_reference.rbs', line 23

def hashes=: (Array[HashData]?) -> Array[HashData]?

#hashes? ⇒ Boolean

Returns:

  • (Boolean)


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

def hashes?: () -> bool

#hashes_valid? ⇒ Boolean

Returns:

  • (Boolean)


25
# File 'sig/sbom/cyclone_dx/record/external_reference.rbs', line 25

def hashes_valid?: () -> bool

#type ⇒ String

Returns:

  • (String)


17
# File 'sig/sbom/cyclone_dx/record/external_reference.rbs', line 17

def type: () -> String

#type= ⇒ String

Parameters:

  • (String)

Returns:

  • (String)


18
# File 'sig/sbom/cyclone_dx/record/external_reference.rbs', line 18

def type=: (String) -> String

#type? ⇒ Boolean

Returns:

  • (Boolean)


19
# File 'sig/sbom/cyclone_dx/record/external_reference.rbs', line 19

def type?: () -> bool

#type_valid? ⇒ Boolean

Returns:

  • (Boolean)


20
# File 'sig/sbom/cyclone_dx/record/external_reference.rbs', line 20

def type_valid?: () -> bool

#url ⇒ uri, String

Returns:

  • (uri, String)


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

def url: () -> (uri | String)

#url= ⇒ uri, String

Parameters:

  • (uri, String)

Returns:

  • (uri, String)


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

def url=: (uri | String) -> (uri | String)

#url? ⇒ Boolean

Returns:

  • (Boolean)


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

def url?: () -> bool

#url_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def url_valid?: () -> bool