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

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

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

Returns a new instance of Content.

Parameters:



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

def initialize: (?attachment: Attachment?, ?url: uri?, ?properties: Array[Property]?) -> void

Instance Method Details

#attachment ⇒ Attachment?

Returns:



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

def attachment: () -> Attachment?

#attachment= ⇒ Attachment?

Parameters:

Returns:



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

def attachment=: (Attachment?) -> Attachment?

#attachment? ⇒ Boolean

Returns:

  • (Boolean)


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

def attachment?: () -> bool

#attachment_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def attachment_valid?: () -> bool

#properties ⇒ Array[Property]?

Returns:



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

def properties: () -> Array[Property]?

#properties= ⇒ Array[Property]?

Parameters:

Returns:



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

def properties=: (Array[Property]?) -> Array[Property]?

#properties? ⇒ Boolean

Returns:

  • (Boolean)


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

def properties?: () -> bool

#properties_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def properties_valid?: () -> bool

#url ⇒ uri?

Returns:

  • (uri, nil)


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

def url: () -> uri?

#url= ⇒ uri?

Parameters:

  • (uri, nil)

Returns:

  • (uri, nil)


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

def url=: (uri?) -> uri?

#url? ⇒ Boolean

Returns:

  • (Boolean)


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

def url?: () -> bool

#url_valid? ⇒ Boolean

Returns:

  • (Boolean)


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

def url_valid?: () -> bool